1

I want to export private images from Drupal to an external client. How to I authenticate an external client to access private files from Drupal DB?

  • Could you expand on the 'secure' requirement? With your files being stored at publicly accessible URLs I'm not sure what concerns you'd have there – Clive Jul 5 '13 at 8:54
  • Ok, tried to change it. If you have any suggestions how to change body to a more Drupal question I would appreciate the help. – Edd Clark Jul 5 '13 at 8:54
3

You can use file_create_url($uri) to create an externally accessible url for the file.

If used with private file mode files, you will need to implement hook_file_download

You might also be interested in the Services module, to expose an API for the files, which can provide authentication methods such as Drupal session and OAuth authentication.

|improve this answer|||||

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.