File upload problem on my server
-
file_uploads
should be On . - You must not exceed the size of the
upload_max_filesize
uploaded file. - You must not exceed the
post_max_size
data you submit. - You must not exceed
max_input_time
. - Make sure the user using apache has permission to write files to the target directory.
Check if these variables are in sync php.ini
with your local server or if you don't have access to the target server settings, make your local ones the same and work on it.
a source to share
whenever you run into problems in PHP, I suggest checking the web server log files. in this situation I think it might be PHP configurations. check your PHP settings and make sure file uploads are allowed on the web server. PHP configurations are stored in the php.ini file. to find out more information, create a simple php file, say info.php and enter the following lines into it:
<?php
phpinfo();
?>
upload info.php file to your server and open the page in your web browser. try looking for "file_uploads". it should be "on". if it is disabled, find the php.ini file and change the "file_uploads" value to "on".
a source to share