I am using the FileField Sources module

One of the features is that it allows you to transfer images from a URL to your drupal folder directly, instead of having to save the image on your computer and then selecting it for upload.

The problem I am having is that it won't let me transfer the file.

http://anywebsite.com/picture.jpg could not be copied, because the destination directory is not properly configured. The folder permission is set to 775, as it should be.

I think it has something to do with the Owner/Group of Ubuntu.

  • 1
    Did you visit admin/config/media/file-system and confirm that everything is fine? – Gokul N K Jun 25 '14 at 6:07
  • Are you aware that this question does not contain an actual question (something that ends with a "?" ...)? – Pierre.Vriens Feb 26 '17 at 19:30

In such cases, Drupal first downloads the image to the temporary directory and then moves it to the public directory. Go to admin/config/media/file-system. Make sure that both temporary and public directories are defined and both are writeable by the web server. The easiest way to do this is to make the web server user the owner of the directory. The command is:

sudo chown -R www-data <directory>

where www-data is the web server user. Depending on your OS and web server, the user could be apache2 or httpd as well.

  • ok so I did a sudo chown -R www-data sites but I am still getting this error see picture -> http://s28.postimg.org/i82q1mgzg/problem.jpg even though my images folder has drwxrwxr-x 2 www-data www-data images – No Sssweat Jun 25 '14 at 17:03
  • I am guessing the web server user is not "www-data". Can you paste the output of command "ps aux"? – Neerav Mehta Jun 26 '14 at 20:48
  • I got it to work :) – No Sssweat Jul 2 '14 at 5:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.