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:
>> #
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
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
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
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
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
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
[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
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
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
10 matches
Mail list logo