View Issue Details

IDProjectCategoryView StatusLast Update
0006652mantisbtbugtrackerpublic2006-01-30 18:05
Reporterpogik Assigned To 
Status newResolutionopen 
Product Version1.0.0rc5 
Summary0006652: File uploads failing when open_basedir restriction set in PHP

When open_basedir is set in PHP, it's unable access the uploaded file in the temporary directory.

is_readable() is allways returning false -> causing ERROR_UPLOAD_FAILURE

filesize() returning length 0 bytes -> causing ERROR_FILE_NO_UPLOAD_FAILURE

this is wrong - file upload fails, even if everything is correct - when these 2 parts are commented out, upload will succeed, because move_uploaded_file() used later is designed for working even with open_basedir restriction - unlike is_readable() or filesize() and others

TagsNo tags attached.


There are no notes attached to this issue.