I’m creating a site in which user can upload his docs.
Settings on server:
upload_max_filesize 2M
post_max_size 2M
The FTP uploading is unlimited.
Is there a way to allow the user upload larger files via FORM?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could try by ini_set function to set the php values for upload_max_filesize at runtime.
but that won’t work because the variable is not setted in time so that it can really ovverride the php.ini directives.
So, if you can’t access the apache conf, you can try to set this kind of things in the .htaccess
I’d also suggest to set the post_max_size that could help a lot.