I've developed a PHP script to upload images to the server. It uploads the image, then reduces the image height, width and resolution server-side, thus reducing the file size a great deal. The problem is, if the user uploads images of say 4MB, it takes forever to upload. As the tool allows the user to upload up to 5 images per submission and even though it manipulates one image at a time, it times out. I've used ini_set() to increase the maximum upload allowance and extend the timeout, but I still can't see the user waiting for up to 2-3 minutes a time and they will no doubt refresh the page or click back, etc. I want the image to be reduced client-side, so that the image being uploaded is trimmed to 200KB or whatever, before being uploaded to the server. Problem being, I've read that the image can't be temporarily stored client-side without action from the user, due to security. Does anybody know of an alternative solution? I'm really stuck on this one and don't want to use the current method!
views:
188answers:
1
A:
CodeJoust
2009-11-21 23:14:26