Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Wolf
True, but it checks it at the first attempt to upload, not when the file is done or partially uploaded. Granted, not what the OP asked for exactly, but better then what he has now and better then spending more time looking... Wolf Chris wrote: > Wolf wrote: >> In your form uploading script: >> #

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Chris
Wolf wrote: In your form uploading script: # individual file size limit - in bytes (102400 bytes = 100KB) $file_size_ind = "838860800"; // 819.2 MB $weight=$_FILES[fileupload][size]; if ($weight>$file_size_ind) { echo" ERROR: please get the file size less than ".$file_size_ind." BYTES (".rou

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Wolf
In your form uploading script: # individual file size limit - in bytes (102400 bytes = 100KB) $file_size_ind = "838860800"; // 819.2 MB $weight=$_FILES[fileupload][size]; if ($weight>$file_size_ind) { echo" ERROR: please get the file size less than ".$file_size_ind." BYTES (".round(($file_size

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Richard Lynch
On Wed, May 10, 2006 11:09 am, Phillip S. Baker wrote: > James Nunnerley wrote: > However you can set the max file size within the tag of HTML. > I forget the proper snytax and tag off the top of my head. > I am not sure the error it spits out as I have never tested that. > you can also use javasc

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Jochem Maas
Jay Blanchard wrote: [snip] Is there anyway to check the size of a file before it starts uploading it? For instance, if the file is huge, and takes ages to upload, and is then rejected by the server, the user will be somewhat annoyed! [/snip] PHP is server-side and cannot check anything client-s

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Phillip S. Baker
James Nunnerley wrote: Is there anyway to check the size of a file before it starts uploading it? For instance, if the file is huge, and takes ages to upload, and is then rejected by the server, the user will be somewhat annoyed! I'm not even sure this is a php question! Nope not a PHP que

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Duncan Hill
On Wednesday 10 May 2006 13:39, Jay Blanchard wrote: > [snip] > Is there anyway to check the size of a file before it starts uploading > it? > For instance, if the file is huge, and takes ages to upload, and is then > rejected by the server, the user will be somewhat annoyed! > [/snip] > > PHP is s

RE: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Jay Blanchard
[snip] Is there anyway to check the size of a file before it starts uploading it? For instance, if the file is huge, and takes ages to upload, and is then rejected by the server, the user will be somewhat annoyed! [/snip] PHP is server-side and cannot check anything client-side. You cold use somet

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Barry
James Nunnerley schrieb: Is there anyway to check the size of a file before it starts uploading it? For instance, if the file is huge, and takes ages to upload, and is then rejected by the server, the user will be somewhat annoyed! I'm not even sure this is a php question! No you can't. No

[PHP] file Upload - checking file size before uploading

2006-05-10 Thread James Nunnerley
Is there anyway to check the size of a file before it starts uploading it? For instance, if the file is huge, and takes ages to upload, and is then rejected by the server, the user will be somewhat annoyed! I'm not even sure this is a php question! Cheers Nunners