maximum attachment size
I have set the maximum size of attachments to 30.720 KB for the summary all attachments and 10.240 KB for each attachment in the admin center.
When I post a message, the editor says I can attach a file with a maximum size of 204.800 KB and all attachments can have the same size in summary.
It seems the admin settings work, I can't upload a larger file then 10 MB. But what's wrong with the editor?
Re: maximum attachment size
Reply #1 –
Are you using the Resize attachments add-on? If so and iirc that size you are seeing is setup by you host limits.
Re: maximum attachment size
Reply #2 –
Could be some math or conversion between php and js.
I have to turn on the admin account and see here what are the limits.
Re: maximum attachment size
Reply #4 –
Thanks, radu. Both says 200 MB as maximum. So that's where the editor gets this from.
But why does he shows 200 MB as maximum when the admin panel is set to 30 MB max?
Re: maximum attachment size
Reply #5 –
When you install the Resize Attachments add-on the settings you set in admin panel are ignored using your host limits. It'snot a bug, it's just how this add-on works. I get 1GB limits
Re: maximum attachment size
Reply #10 –
I agree, it's not very clear, I discovered that info from Spuds.
Re: maximum attachment size
Reply #13 –
I can see how all that can be confusing ... especially when dealing with non image files which will be rejected for size even though they are under the limits given by the form.
I think ideally the line would read one size (that max size per PHP limits) for images and another size per the ACP (for non image files).
The addon has to initiate the post attachment form with the PHP limits so teh client will allow the user to upload a file of that max allowable size. If I leave the values as set in the ACP the form / browser / http would refuse to send the file.
The ACP limits are still enforced on the server side, this allows the form to send a larger file and gives the server an opportunity to compress it to fit within those ACP limits. That compression only works for images so large files, like PDF's get rejected server side (instead of client side) which can create a WTF moment for the user as the form limit says its fine.
The cleanest thing may be to allow limits to be set independently for image files and non-image file size limits, but that would take rework of the attachment JS and is a beyond what the addon can (or should) do. This is maybe something for 2.0, and in the meantime I could check if I can add more clear text to that limit line on the form.
Re: maximum attachment size
Reply #14 –
I don't think this one is tracked yet for 2.0.