Author |
|
webdbase2 Valued Community Member
Joined: 25 March 2015 Location: Bulgaria
Online Status: Offline Posts: 81
|
Posted: 07 April 2015 at 11:58pm | IP Logged
|
|
|
I noticed that when AttachmentSizeLimit is On, the check is done only per file and not per total amount of all attachments, which is wrong.
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 08 April 2015 at 6:29am | IP Logged
|
|
|
It's by design. The purpose of this setting is to limit the request size when it's limited by the web server. Often, web servers limit the max size of content the browser can send to the server. If this size is exceeded, the web page will crash. The web page can't often determine this limit so this parameter exists. The admin should set it to a value less than the maximum request size allowed by the web server. This will let the client even not to try to upload a file which would anyway be rejected by the web server. It works in not all browsers but still helpful.
If doesn't make sense for multiple files because each file is uploaded by a separate request. I know this is now always so (jQuery uploader can join multiple files in a single query) but we're not using that.
I admit another setting of total size of all attachments can also be helpful for some purposes (such as to limit the size of an outgoing message) but it would be another setting for another purpose.
Regards,
Alex
|
Back to Top |
|
|
webdbase2 Valued Community Member
Joined: 25 March 2015 Location: Bulgaria
Online Status: Offline Posts: 81
|
Posted: 08 April 2015 at 6:48am | IP Logged
|
|
|
Alex wrote:
The purpose of this setting is to limit the request size when it's limited by the web server.
...
It doesn't make sense for multiple files because each file is uploaded by a separate request. |
|
|
This one you can always get from server's PHP settings.
Quote:
I admit another setting of total size of all attachments can also be helpful for some purposes (such as to limit the size of an outgoing message) but it would be another setting for another purpose. |
|
|
It would be nice, if you introduce it in future versions.
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 08 April 2015 at 7:41am | IP Logged
|
|
|
Quote:
This one you can always get from server's PHP settings. |
|
|
It's not always so, especially in case if the web server is behind proxy.
Quote:
It would be nice, if you introduce it in future versions. |
|
|
You can suggest it at:
http://afterlogic.uservoice.com/
If we see the interest from the community, we'll implement it. Thanks.
Regards,
Alex
|
Back to Top |
|
|
webdbase2 Valued Community Member
Joined: 25 March 2015 Location: Bulgaria
Online Status: Offline Posts: 81
|
Posted: 08 April 2015 at 10:36am | IP Logged
|
|
|
Done!
|
Back to Top |
|
|