21310 Posts in 5739 Topics by 2604 members
| Go to End | Next > | |
| Author | Topic: | 2936 Views |
-
Re: File is not a valid upload

24 January 2011 at 10:54am
Hey mmh,
Just tried the very latest of those patches and hey presto!
Thanks heaps for your help.
-
Re: File is not a valid upload

25 October 2011 at 11:30am
I'm having the same problem with an install of 2.4.6
This is not my first Silverstripe install and I have got this working with other installs on this server (some time ago so how is unclear).Has this patch not made its way into the distribution yet? Or am I looking at another problem?
-
Re: File is not a valid upload

13 January 2012 at 3:25am
I installed 2.4.6 and I have this problem.
What can be happening?VPS CentOS Plesk 10
dominiox.com/conf
File vhost.conf:<Directory /var/www/vhosts/dominiox.com/httpdocs>
<IfModule mod_php5.c>
php_admin_value open_basedir "/var/www/vhosts/dominiox.com/httpdocs:/tmp:/usr/yii:"
</IfModule>
</Directory>Thanks.
Regards,
Jose A
-
Re: File is not a valid upload

13 January 2012 at 3:53am Last edited: 13 January 2012 3:55am
The problem occurs in the following lines (Upload.php):
public function validate() {
// we don't validate for empty upload fields yet
if(!isset($this->tmpFile['name']) || empty($this->tmpFile['name'])) return true;$isRunningTests = (class_exists('SapphireTest', false) && SapphireTest::is_running_test());
if(isset($this->tmpFile['tmp_name']) && !is_uploaded_file($this->tmpFile['tmp_name']) && !$isRunningTests) {
$this->errors[] = _t('File.NOVALIDUPLOAD', 'File is not a valid upload'); <<<<<<<<<<<<<<<<<<<<
return false;
}$this->tmpFile['tmp_name'] = /var/www/vhosts/dominiox.com/httpdocs/silverstripe-cache/bar1111.jpg
$isRunningTests = falseApparently is_uploaded_file = false
Why?Regards,
Jose A
| 2936 Views | ||
| Go to Top | Next > |



