[wp-hackers] upload size limit (in pixels!)
Manuel Schmalstieg
webdev at ms-studio.net
Mon Aug 29 18:45:40 UTC 2011
I'm wondering if anybody can think of a quick and easy solution for
this typical situation:
you have set everything up for the client who wants to manage himself
the content of a new WP website. You thought him not to copy-paste
directly from MS Word, and you told him to upload images at a
reasonable size.
Your WP theme has been configured to resize all images appropriately,
so there is nothing to worry ... except that the customer will upload
10 MB images from his camera, at sizes of 5000 x 3000 px ... and WP
won't produce any thumbnails for those, as the resizing exceeds the
memory limit.
Question: can we define a maximum pixel width (of, say 2000px in any
direction) beyond which the user will simply get a warning message?
Setting an upload limit in MB for any uploads wouldn't be a solution,
since we still want to allow the upload of a 15 MB pdf, for instance.
--
Manuel
More information about the wp-hackers
mailing list