Hallo!

When i want to upload an avatar image, i get the error:
warning: mime_content_type(/tmp/phpAqYHrh) [function.mime-content-type]: failed to open stream: No such file or directory in /srv/www/htdocs/web313/html/drupal/includes/file.inc on line 149.
And Drupal says, that folder 'pictures' doesn't exist- but it exist!

When I do the same on my Drupal, which is on my own server, the image upload works great.
But on the new webspace which i have bought, it doesn't work.

Hope you can help me!

felix

Comments

Ixchael’s picture

I'd first check the chmod setting of the pictures directory. The exact chmod setting you need probably depends on your setup (i.e. what user the php code is running as) - but if you experiment a bit you can probably find the right one. You'll want to look at the 'write' permissions (i.e. is write enable for the owner, group, or everyone?).

You can see the chmod settings in most FTP programs by right-clicking on the directory.

If that doesn't work, you may want to check the specified temp directory exists (default is /tmp I believe) and if the chmod settings allow you to write there...

- Ix

Felix2k’s picture

Thanks for your reply.

The CHMOD was first on 755 and now i set it to 777. But the avater upload doesn't work...

And i don't find any tmp folder.

other solutions?

felix