I've just had the same problem. Silverstripe 2.4.5
I just applied the patch as per: http://open.silverstripe.org/attachment/ticket/5547/2.4.1-FileUpload-2.diff
I still get the error message. I've uploaded the images to my UPloads folder via FTP and then added them 'from the file store' that way. But what's weird now is that I see no thumbnail on the field. (see attached) Can this maybe point to another issue?
Can anyone help with my issue above. I'm working on a pretty job and this hindering me a lot. Can anyone suggest what the issue could be?
A few post back someone mentioned adding 'php_admin_value open_basedir none' to the vhost config file. I asked my server administer to do this and they gave me this response, but the CMS is still behaving the same:
The server is setup to support .htaccess level php controls. I've added "php_flag open_basedir none" to the .htaccess file located in the root directory. This should serve as you require.
The site im working on isn't located in the root directory. Would I need to add the line into the .htaccess file on the silverstripe directory for this to have an effect?
Any other suggestions on how I can get this issue sorted? Thanks so much.
PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/opt/silverstripe) in Unknown on line 0
pHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
Version 2.4.7 also showing 'File not a valid upload' when I try and import images. If this problem is persistent then I won't be able to use SS for another site that I'm planning which would be a great pity.
(The attached image, if it shows, is a test to see if it uploads images to the forum)