Using HTML form to upload files to server is really slow?

Posted on 2007-11-19
Medium Priority
Last Modified: 2013-11-29
I have set up an HTML form to upload files to the server space I use but it is really slow, especially with files that are over 100 megabytes.  I'm receiving handling the file upload form with a PHP page on an Apache server shared hosting on Godaddy (but I don't know if that is relevant).

Basically, is there any way to speed this up, does it have to do with server speed or is HTML form uploading just slow in general?  Is there a way to use the FTP protocol for an HTML form upload?

What do you recommend for uploading files on webpages, files that are over 100 megabytes?  Because I really need to find a way to speed things up and I believe FTP is much faster.  Thanks!
Question by:parlays
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 20

Expert Comment

ID: 20315251
whats your upload speed and how long does it take to upload 100mb ?

Author Comment

ID: 20315787
Not sure how to measure the speed.  Still need to add an AJAX progress meter because godaddy uses PHP 5.1 and I believe I need PHP 5.2 to use the PHP progress bar.  Honestly seems like it takes forever, maybe I need to change a setting in the php.ini file because it always times out after like 30 minutes.  Not sure what is going on here.  I'll try to get more info.
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 20318290
also check in the php.ini file what is maximum file upload limit...
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

LVL 57

Assisted Solution

giltjr earned 2000 total points
ID: 20331871
Where are you uploading from?  A typical ADSL link is limited to 384 Kbps upstream speed, which when you include overhead would take about 40 minutes to upload.

In addition to checking the php.ini file as to what the max upload size is you also need to check Apache to see what the timeout is on a "transfer", the default is 120 seconds (Timeout 120).  I can't remember if Apache's timeout comes into play when php has control.

Author Comment

ID: 20331925
Yeah, I'm using AT&T DSL.  And I'm uploading to Apache server on Godaddy.

Is there a way to measure the speed of my DSL and measure the speed of my server?  I feel like it should be as fast as when I upload a file using FTP in Dreamweaver?  Am I wrong?  I can live with it being somewhat slow as long as I've done everything I can to measure and make it as fast as it can be.

Thanks for the info fellas, I'll give out points soon.  But I still need to be able to find out more about this speed issue, so I know if I should upgrade my hosting service or what I have to do to speed up this whole process.
LVL 57

Accepted Solution

giltjr earned 2000 total points
ID: 20332356
You should know what your ADSL speeds are.  You can go to speed test sites.  I would recommend http://www.speedtest.net and select a location that is closest to you.

It is not your hosting speed that you need to look at, it is the "client" speed.

     Client -- 384Kbps --> Internet -- ???? > Server at GoDaddy

Typically the ???? is typically the 45 Mbps and above ranage and most hosting providers are in data centers that have at least a single DS3, but mostly they have multiple DS3's  or higher.

Author Comment

ID: 20332777
Sick Giltrj, thanks man.  One final question about measuring upload or server speed.  You know when you download something off the internet and have a download dialogue box that has a number with KB/s.  Is there a way to measure the KB/s or MB/s for an upload?  Do I need to use like an AJAX progress reporter to get the speed per second?  Thanks!
LVL 57

Expert Comment

ID: 20468259
That is really beyond my knowledge.  Off hand I don't know how ajax could know how much data you have uploaded.  It would have to be able to "see" the upload connection.  I guess you could code a ajax script that triggers a script on the server and the server script checks to see how much data has been transfered and sends it back to the client ajax script.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question