NYCPHP Meetup

NYPHP.org

[nycphp-talk] File upload form (was: Re: (no subject))

David Krings ramons at gmx.net
Sat Sep 16 21:43:47 EDT 2006


That can be done? I guess it can since you mention it as a possible 
solution. This way I can also set the upload limit on the fly and make it 
even configurable. I assume I'd use ini_set() for this? I found the setting 
for the max file uploads and upload limits and execution limits, but which 
setting would restrict the file types allowed for upload. Would such a 
change be reflected in the browse box? My guess it not as that browse box 
is generated by the browser. So what happens when one picks a file with an 
illegal file extension?

Nevertheless, this is awesome!

Thank you!


At 07:48 PM 9/16/2006, you wrote:
>Your best bet is to alter your PHP.ini for specific files to only allow them
>to be uploaded, and or to change that ini setting on the page that is
>performing the upload and then default it back.
>
>HTH,




More information about the talk mailing list