471,616 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,616 software developers and data experts.

Image Upload

I have being working on a form.
The form allows 5 image files to be uploaded with other user details.
All the 5 image files are uploaded at the same time (with a single submit button click).
The uploaded images are resized to thumbnails 120x120 version and 600x400 version.
Maximum 1 MB size image files are allowed to upload.

I have tested with this in my local server using XAMPP for Windows and its working fine. In my local server all the 5 images are uploaded and thumbnails are generated within 3 seconds. (I understand that there is no network data transfer in the local server)

My Live server is *nix machine with good hardware configuration and lot better than my Local Server

The PROBLEM is Live Server takes around 60 or more seconds to upload the files and resize the images and update the user data. (image resolution of 1440x960)

My client feels that it takes much time to upload the images. Is there anyway to improve the performance and make the image uploads to be faster.

Please let me know your suggestion how should I go with this Or If any alternative can be provided.

Thank you very much for all your suggestion!
If you expect me to place the code which I use, I am glad to provide it.

I am using a very simple script to resize the images.

Thanks again
Feb 6 '09 #1
4 1808
8,656 Expert Mod 8TB
do you know, how long the file uploads take? if the total size is in the range of some MB I can imagine the upload taking that long.
Feb 6 '09 #2
The total size of all the image files I had uploaded was 1.5 MB.
Feb 6 '09 #3
8,656 Expert Mod 8TB
taking 60 seconds for file upload seems quite possible....
Feb 6 '09 #4
5,058 Expert 4TB
Uploading images to the server will take some time. Your PHP code can do nothing to affect that.

Depending on both the server and your client's bandwidth limitations, a 1.5MB upload could well go over 1 minute.
(That would be something like 25KB per second, which could very well fit a low speed ADSL connection)

If your client wants this to take less time, he is going to have to have to buy a better connection for the computer doing the uploading, and possibly even upgrade the download bandwidth for the server.
Feb 7 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by dave | last post: by
2 posts views Thread by Gary \(Girish\) | last post: by
reply views Thread by doffer | last post: by
7 posts views Thread by xx75vulcan | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.