Re: uploading files | how to avoid submitting twice?

From: Date: Sat, 23 Feb 2002 17:42:15 +0000
Subject: Re: uploading files | how to avoid submitting twice?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85947@lists.php.net to get a copy of this message
Andy <news.letters@gmx.de> wrote: > Is there a way to redirect imediatelly to a waiting page? I tryed to > redirect, but somehow the server is first uploading the file before > something else happens. unfortunately, no. one thing you can do is use javascript to pop up a small window in your form's onsubmit method that tells the user to hang on, and then close that window in the next page's onload method. it isn't easy to do a real progress meter, but even this little bit should help tremendously. you may also want to check the md5 sum of the file contents against previous uploads to detect duplicates. jim

« previous php.general (#85947) next »