Solved

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

Posted on 2007-11-19
8
1,183 Views
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!
0
Comment
Question by:parlays
8 Comments
 
LVL 20

Expert Comment

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

Author Comment

by:parlays
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.
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 20318290
also check in the php.ini file what is maximum file upload limit...
0
 
LVL 57

Assisted Solution

by:giltjr
giltjr earned 500 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.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:parlays
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.
0
 
LVL 57

Accepted Solution

by:
giltjr earned 500 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.
0
 

Author Comment

by:parlays
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!
0
 
LVL 57

Expert Comment

by:giltjr
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.
0

Featured Post

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

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

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now