Solved

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

Posted on 2007-11-19
8
1,188 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
[X]
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
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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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
 

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MSSQL - Lock Row from reading by other programs 9 62
Bandwidth cap???? 8 63
Converting PHP triple des decrypt to c# 9 76
How do I remove "" from json_encode 5 23
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to count occurrences of each item in an array.
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…

730 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