473,408 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Image Upload

Hi
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 1905
Dormilich
8,658 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
Dormilich
8,658 Expert Mod 8TB
taking 60 seconds for file upload seems quite possible....
Feb 6 '09 #4
Atli
5,058 Expert 4TB
@samatair
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

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

Similar topics

15
by: lawrence | last post by:
I've been using the following function (yes, it is inelegant, what can I say, I wrote it a long time ago) to upload images. Haven't had a problem with it for at least a year, and I don't recall...
3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
2
by: Gary \(Girish\) | last post by:
Hello: I am using SA-FileUp to enable members to upload their product images to my ISP sever. When member uploaded a new image file, the file name is replaced with the member ID and the old file...
0
by: doffer | last post by:
I want to make a portfoliosystem where user can register and get their own portfolio... I've started the developer work, but I'm stuck on the image upload part... I'm experiencing some problems...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
2
by: prakharv | last post by:
Hi All, Below is the code which I am using to upload a jpeg file to the server. But the problem I am facing is that it is not copying the entire contents of the image file to the webserver and it...
7
by: xx75vulcan | last post by:
Hi, I've got a PHP Upload Form that works great, unless that is, the image your uploading has been modified through a photo editing software. Example: if I upload the image straight from a...
7
by: mishrarajesh44 | last post by:
hii all Truly telling i hav got this code from net & i am finding error while running the code below.. code:- <?php $idir = "photo/"; // Path To Images Directory $tdir =...
1
by: sravani1 | last post by:
This code runs like when i submit the form it takes the image and displayed and top of the image a map will displayed. But actually i want that when i give the image it checks the location in the map...
1
by: chennaibala | last post by:
can any one send me mutiple image upload program and save the file name with extension in mysql table.we must cheak uploaded file type like bmp or any image file while uploading. i develop...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.