How to limit file attachment size in web application

Hi All,

I have a lotus notes database that can be accessed via web. There is form which allows user to create an attachment. I want to limit sa attachment size to 10MB only and displays a message if a user attempt to upload attachments greater than 10mb.

Is there a way to do this?

Subject: How to limit file attachment size in web application

The limits for file size is set in the web configuration document, and in the server document.

The server document has a field to set max size of request on Internet Protocols tab, HTTP tab, HTTP Protocol Limits section.

The web configuration document has a field to set max POST size on Domino Web Engine tab, POST Data section.

If both of these are set to 0, size is not restricted at all. The only way to check size is after the fact, when the file has already been uploaded, via a WebQuerySave agent, and then delete the attachment or discard the document. The problem here is that if the file is sufficiently large, it may already have filled up your disk.

If they are set to something larger than 0, and a file attachment from web is too large, you will get an error 500-something response from the web server, which won’t tell the user anything at all.

You will have to choose what is best in your situation.

/Peter

Subject: How to limit file attachment size in web application

Hi,As per my knowledge File Upload Control only support file upto 10 MB and we don’t have any control (mean where we can check the size) on this.

If anyone knows do let us know?

Thanks,

Jeni

Subject: How to limit file attachment size in web application

If a third party product is a choice, you can try ZipMail. Here you can put limits that are checked before the attachment is uploaded.HTH

Subject: AttachZIP restricts attachment size per user

Download AttachZIP to restrict attachment size for each user. It allows you to specify maximum attachment size for specified IBM DD groups.

i.e. AttachZIP end user profile: restrict attachment size

Maximum attachment size: 10240 KB for default users

20000 KB for IBM DD group 2: AttachZIP HR users

30000 KB for IBM DD group 2: AttachZIP Accounting users

40000 KB for IBM DD group 3: AttachZIP IT users

http://www.notesmail.com/AttachZIP

Otherwise, you can globally restrict message size for Notes users, and globally

restrict messages size and attachment size for iNotes users as seen below.

IBM Notes: Restricting message size

  1. Open DD Server configuration settings document - Router/SMTP tab -

Restrictions and Controls tab - Restrictions tab, then change field: Maximum

message size

IBM iNotes: Restricting message size and attachment size

  1. Open DD Server configuration settings document, then click IBM iNotes tab

and change field: Maximum attachment size (kb)

  1. Open DD Internet Sites (Web Site) document, then click Domino Web Engine tab

and change field: Maximum POST data (in kilobytes):

  1. Open DD Server document, then click Internet Protocols tab - HTTP tab and

change HTTP Protocol Limits field: Maximum size of request content


★ Crucial tools for IBM Lotus Notes and Domino administration and development…

Find the “crucial tools you need to succeed” including product descriptions, downloads, demos and testimonials.

Download and try the lite (free) version.

Better, stronger, faster productivity for administrators and developers.

Speed up IBM Lotus Notes and Domino administration and development with these crucial software tools.

http://www.notesmail.com/IBM-Notes-tools

Subject: Oh look more of your spam responses to 7 year old questions