I just updated to Drupal 4.7beta 2.
When I'm trying to upload a custom logo I use the browse button and find the file and then click on save configuration.
I get this error.
The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.

I was using Firefox 1.0.6 on Linux and then in order to test it further I tried it on a winXP system with Firefox 1.0.7 and also internet explorer and I got the exact same error.

Here is the server info
Apache/2.0.54 (Ubuntu) mod_jk2/2.0.4 PHP/5.0.5-2ubuntu1 is the version of PHP/Apache I'm running with Mysql 4.1.12

Comments

stevryn’s picture

Meta I wonder if this is related to an issue found with 4.6.3

http://drupal.org/node/26822

metapunk’s picture

I'm trying to upload with a photo with Acidfree and I get this error.

* warning: mime_content_type(/tmp/phpRHQCMN) [function.mime-content-type]: failed to open stream: No such file or directory in /home/robbt/websites/imcbeta/includes/file.inc on line 150.
* The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
* warning: filesize() [function.filesize]: stat failed for /tmp/phpRHQCMN in /home/robbt/websites/imcbeta/modules/filemanager/filemanager.module on line 150.
* The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
* warning: filesize() [function.filesize]: stat failed for /tmp/phpRHQCMN in /home/robbt/websites/imcbeta/modules/filemanager/filemanager.module on line 150.
* The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.

I'm not sure if it is related but I'm going to research it further.

I changed the default directory under files to an absolute directory underneath my home directory and it appears to allowed me the ability to upload. I'm sorry that this comment is so long and unedited, but my browser is about to crash.

This is the error I was getting when trying to upload an attachment using the upload module attaching an image to a page.
* warning: mime_content_type(/tmp/phpGiGdFz) [function.mime-content-type]: failed to open stream: No such file or directory in /home/robbt/websites/imcbeta/includes/file.inc on line 150.
* warning: rename(/tmp/phpGiGdFz,/tmp/phpGiGdFz.txt) [function.rename]: No such file or directory in /home/robbt/websites/imcbeta/includes/file.inc on line 160.

After I changed the home directory it allowed me to upload but it changed the jpg into a ,txt I'm going to kill firefox and then I'll investigate further.

Steve Dondley’s picture

I cannot reproduce this problem. Using Windows XP, Firefox version 1.5.

killes@www.drop.org’s picture

This might be a safe-mode related issue.

Steve Dondley’s picture

This is a safe mode issue. With safe mode on, I get the same errors.

metapunk’s picture

How do I fix this. I installed php-pear package but then I got this error.
* warning: mime_content_type(/tmp/phpy5mZ3t) [function.mime-content-type]: failed to open stream: No such file or directory in /home/robbt/websites/imcbeta/includes/file.inc on line 150.
* The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.

I just checked my php.ini file and Safe Mode is set to Off as is Safe Mode Gid

Let me know if you need any more info.

metapunk’s picture

Status: Active » Closed (fixed)

This is a problem with the mime_magic aspect of Apache2 under this install rather than a bug inside of Drupal itself.