Search found 5 matches

by Rioku
Sat Jun 09, 2007 6:09 pm
Forum: PHP - Code
Topic: upload file MAX_FILE_SIZE
Replies: 13
Views: 1836

I really don't understand why you are stuck to this MAX_FILE_SIZE thing. It is client side...it cannot prevent anything - restriction easy to bypass. I am not trying to stop hacking I am trying to stop stupid users. MAX_FILE_SIZE seems to be the best solution on limiting the file size. What I read ...
by Rioku
Fri Jun 08, 2007 5:22 pm
Forum: PHP - Code
Topic: upload file MAX_FILE_SIZE
Replies: 13
Views: 1836

PHP does provide workaround for this waiting game. If, in your form, you include a special input named "MAX_FILE_SIZE" before the file input, PHP will error out when the POST data it receives reaches this limit, instead of the post_max_size or upload_max_filesize limits set in php.ini If ...
by Rioku
Fri Jun 08, 2007 11:15 am
Forum: PHP - Code
Topic: upload file MAX_FILE_SIZE
Replies: 13
Views: 1836

Yes you understood my question correctly. And your answer is what I feared. :( time to look into a java solution. It just seems odd that PHP would not be able to check if the file was too large before the upload was attempted.
by Rioku
Fri Jun 08, 2007 10:41 am
Forum: PHP - Code
Topic: upload file MAX_FILE_SIZE
Replies: 13
Views: 1836

This is where things get annoying... I am not sure I have permission to access php.ini on the server I have to use... is there anything else i can try?
by Rioku
Fri Jun 08, 2007 1:58 am
Forum: PHP - Code
Topic: upload file MAX_FILE_SIZE
Replies: 13
Views: 1836

upload file MAX_FILE_SIZE

I have read as much as I can find but I simply can not get the code to work the way I expect it to. I want the code to not upload a file if it is to large and to have it message the user that the file is too large. So far I can only make that message after the file is uploaded, which is annoying to ...