0

What is the standard way to have people upload large image files (say, 20m) but instead of bouncing the user on a set size limit, simply resize it to fit the constraints?

This is from just an HTML file upload to a PHP script. Thanks!

p9807
  • 515
  • 2
  • 5
  • 11
  • 1
    [About 1,810,000 results](http://www.google.com/search?q=php+resize+image+on+upload), and unless you are using a framework, there isn't really a default one, but all nearly 2 million hits kinda do the same. – Wrikken Jul 27 '11 at 23:29
  • possible duplicate of [php upload image, rename, thumbnail, and save both](http://stackoverflow.com/questions/1247528/php-upload-image-rename-thumbnail-and-save-both) – Wrikken Jul 27 '11 at 23:30
  • If your server does not allow large uploads then you'll most probably need a client side resize-before-upload solution (see also: [Image resize before upload](http://stackoverflow.com/questions/961913/image-resize-before-upload)) – miku Jul 27 '11 at 23:31
  • If you are accepting and handling large files, then you basically have no size limit. Or am I misunderstanding what you refer to with "size limit"? – deceze Jul 27 '11 at 23:31
  • yep sorry, I was unclear--looking for a client side resize down before being sent to the server. thanks for the links – p9807 Jul 27 '11 at 23:36

0 Answers0