I just want to know if there is anyway set drupal to upload images to the directory outside the drupal installation like loc*lhost/site-name/image-upload/... rather than loc*lhost/site-name/drupal/sites/all/default/.... My drupal installation directory is loc*lhost/site-name/drupal/

Thank you JOnas


Use Private File System, go to admin/config/media/file-system and provide the private file system path. After saving it, select Private local files served by Drupal as Default download method. After that edit your image field and choose Private Files as Upload Destination

Note : It should be writable by Drupal and not accessible over the web.

| improve this answer | |
  • Than you very much wolverine, it works now – jonazz Jun 25 '14 at 9:50

You can use absolute URLs. So assuming that you drupal directory is at /loc*lhost/site-name/drupal and you want the files to be stored in /loc*lhost/site-name/image-upload, you can enter /loc*lhost/site-name/image-upload in the public or private image directory. Make sure that this directory is writeable by the web server.

| improve this answer | |
  • Than you very much Neerav, it works now – jonazz Jun 25 '14 at 9:50

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.