matt1237
asked on
Typo3 CMS backend file upload error
I have used Typo3 for quite a while so am really surprised why I am not finding a quick solution to this as I cannot seem to find any other post anywhere on the web describing the same problem.
THE PROBLEM:
/*******************/
When I click the Filelist module in the backend, select the folder I would like to upload to, browse to a local desktop file to upload and click upload... I get an error screen with the following two lines plus a continue button that just takes me back to the same upload page.
Errors:
2: The upload has failed, no uploaded file found!
WHAT I DEBUGGING I'VE DONE SO FAR:
/*******************/
1. Check Linux permissions for fileadmin and subdirectories (the default location for uploaded files). I set these files/directories to 777 permissions just to make sure and confirmed that the current group for all is apache. The webserver user is apache and its group is apache.
2. Scoured the web for anyone else having the same problem... failed.
THE PROBLEM:
/*******************/
When I click the Filelist module in the backend, select the folder I would like to upload to, browse to a local desktop file to upload and click upload... I get an error screen with the following two lines plus a continue button that just takes me back to the same upload page.
Errors:
2: The upload has failed, no uploaded file found!
WHAT I DEBUGGING I'VE DONE SO FAR:
/*******************/
1. Check Linux permissions for fileadmin and subdirectories (the default location for uploaded files). I set these files/directories to 777 permissions just to make sure and confirmed that the current group for all is apache. The webserver user is apache and its group is apache.
2. Scoured the web for anyone else having the same problem... failed.
In your PHP.INI your settings for post_max_size and upload_max_filesize to see if they are large enough to accept the file. If you don't have access to the file run php_info();
ASKER
My php.ini setting are...
#####
safe_mode = off
max_execution_time = 60
max_input_time = 120
memory_limit = 32M
file_uploads = On
upload_max_filesize = 2M (my gif file and other files I have tried are sub 30K)
#####
safe_mode = off
max_execution_time = 60
max_input_time = 120
memory_limit = 32M
file_uploads = On
upload_max_filesize = 2M (my gif file and other files I have tried are sub 30K)
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thank you so much!
You asked the right questions. Typo3 does require access to the /tmp directory. The value upload_tmp_dir does not have to be set manually in php.ini but it does get set by Typo3 and points to the /tmp directory. Once I allow access to the /tmp directory using open_basedir everything worked beautifully.
Here is what was entered into the vhost.conf file if anyone else needs to do this as well:
<Directory /var/www/vhosts/some-domai n-name.com /httpdocs>
php_admin_value open_basedir "/tmp/:/some-other-random- directory/ "
</Directory>
You asked the right questions. Typo3 does require access to the /tmp directory. The value upload_tmp_dir does not have to be set manually in php.ini but it does get set by Typo3 and points to the /tmp directory. Once I allow access to the /tmp directory using open_basedir everything worked beautifully.
Here is what was entered into the vhost.conf file if anyone else needs to do this as well:
<Directory /var/www/vhosts/some-domai
php_admin_value open_basedir "/tmp/:/some-other-random-
</Directory>
ASKER
Although this did not directly apply to Typo3, it was directly related to what was causing the problem. The solution was good and I commented to fill in the gaps.