GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 12-Jan-2005, 20:35
spike666's Avatar
spike666 spike666 is offline
New Member
 
Join Date: Mar 2004
Posts: 17
spike666 is on a distinguished road

Uploading large files through html forms


I recently set up an FTP server for my company and am working on a web-based frontend for it to allow less adept users to submit files to us.

My problem is that we get files that are sometimes up to 100mb (sometimes over 600mb). Once the user clicks the submit button, the next page doesn't come up until the file is done uploading, and I don't want the user clicking submit over and over again if they don't think something's happening...

Is there any way to pass that form data to a new page that says "Your file is uploading, be patient....." that stays there until the file's done, then loads a new page?

The server is running Linux with apache 1.3 and PERL. I've got SSI enabled.
  #2  
Old 13-Jan-2005, 05:48
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
The best way i can think of is disabling the 'Upload' button and giving it a 'Uploading...' value with some javascript.
Code:
<form ....> <input type="file" name="filebox"> <input type="submit" name="but" value="Upload" onclick="this.form.but.value='Uploading...';this.form.but.disabled=true;"> </form>
I'm not 100% sure this works, but you can give it a try
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
  #3  
Old 15-Jan-2005, 18:57
Corey Bryant Corey Bryant is offline
Member
 
Join Date: Oct 2003
Location: Castle Rock, CO
Posts: 216
Corey Bryant will become famous soon enough
I am not great with JavaScript, but I did have this code to disable the submit button on a form once it is pressed:
Code:
<SCRIPT LANGUAGE="JavaScript"> function RemoveButtonFromView() { document.public_payment.step_6_next.style.visibility = "hidden"; document.public_payment.processing.style.visibility = "visible"; } function fnTrapKD(){ if(event.keyCode == '13'){ document.forms[0].test.value = 'asdf'; document.all.listButtonNext.style.visibility='hidden'; document.all.processingListNext.style.visibility='visible'; document.forms[0].submit(); } else { return true; } } function checkIfProcessing() { if (processingListNext.style.visibility != 'visible'){ moveFocusToFirst(); } } </SCRIPT>
Maybe that might help or give you some ideas also
 
 

Recent GIDBlogToyota - 2008 July Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
working with html HELP dopee MySQL / PHP Forum 10 18-Jan-2005 04:31
converting text files to html files kensenb C Programming Language 13 09-Nov-2004 11:33
Can't view pages from another machine on the Intranet aevans Apache Web Server Forum 9 14-May-2004 02:26
uploading files into server prinzekay MySQL / PHP Forum 5 16-Mar-2004 00:00
[class] Generate Forms Without Using HTML! Elmseeker PHP Code Library 6 11-Mar-2003 12:05

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 00:58.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.