Bluehost.com Web Hosting $6.95

Re: Max File Size exceeded

This is a discussion on Re: Max File Size exceeded within the PHP General forums, part of the PHP Programming Forums category; You are probably referring to >2mb filesize. The default setting in php.ini for uploads are 2 MB. As ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-24-2003
Kim Steinhaug
 
Posts: n/a
Default Re: Max File Size exceeded

You are probably referring to >2mb filesize. The default
setting in php.ini for uploads are 2 MB.

As far as I know there isnt any good way of checking the
filesize client-side. You could however use some sort of
java-applet I would think for the upload system - this would
be able to validate the filesize I guess.

The other, and probably the only sollution, would be to
modify php.ini on the server to handle larger files. If your
on a server with other customers you will probably have a
hard time getting your provider to do this as most people
have no use for larger files. On the other hand he most likely
would love to sell you a dedicated server (so would I, :).

--
Kim Steinhaug
---------------------------------------------------------------
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
---------------------------------------------------------------


"Unknown Sender" <bogus@news.php.net> wrote in message
news:Pine.LNX.4.21.0008201936070.2397-100000@ftoomsh.progsoc.uts.edu.au...
>
> Hi All,
>
> I've written a script that accepts an uploaded image, it sets the
> MAX_FILE_SIZE hidden variable as specified. However, when a file that is
> too large is uploaded the script doesn't get a chance to show its own
> error message, instead the warning outputed:
>
> Warning: Max file size exceeded - file [form_data] not saved in Unknown on
> line 0
>
> How can I prevent this error occuring and handle the condition myself?
>
> Thanks,
> Shaun
>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:46 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0