check MAX_FILE_SIZE
am 09.10.2007 21:58:44 von ampeloso
Hello,
I have a page that uploads a file. It has a form and uses SELF to
process the file the second time around.
I have MAX_FILE_SIZE set. The problem is, if the file is too big I
cant check $FILE['xx'][size] until it comes back.Which could be a
while.(which the server sets to 0).
I want to check it with javascript if possible.
If I try to upload a 20 gig file the customer wont know its too big
for hours.
Help
and Thanks
Re: check MAX_FILE_SIZE
am 09.10.2007 22:10:19 von Good Man
Mike wrote in news:1191959924.975852.149570
@v3g2000hsg.googlegroups.com:
> Hello,
> I have a page that uploads a file. It has a form and uses SELF to
> process the file the second time around.
> I have MAX_FILE_SIZE set. The problem is, if the file is too big I
> cant check $FILE['xx'][size] until it comes back.Which could be a
> while.(which the server sets to 0).
> I want to check it with javascript if possible.
> If I try to upload a 20 gig file the customer wont know its too big
> for hours.
> Help
> and Thanks
how would you know the file size if it's not on the server yet?
to answer your javascript question in this non-javascript group, the answer
is no, you cannot do it via javascript either.
you could build a Flash file-uploader a-la Flickr
(http://www.flickr.com/photos/upload/) ... that might be the only way to do
what you want.
Re: check MAX_FILE_SIZE
am 10.10.2007 13:27:20 von colin.mckinnon
On 9 Oct, 20:58, Mike wrote:
> Hello,
> I have a page that uploads a file. It has a form and uses SELF to
> process the file the second time around.
> I have MAX_FILE_SIZE set. The problem is, if the file is too big I
> cant check $FILE['xx'][size] until it comes back.Which could be a
> while.(which the server sets to 0).
> I want to check it with javascript if possible.
> If I try to upload a 20 gig file the customer wont know its too big
> for hours.
> Help
> and Thanks
You can limit POST size on Apache (and presumably other webservers
too)
C.