Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Which URL format should I use when retrieving a file via the services module? I figured that it would be formatted like this:

http://<domain>/<endpoint>/file/fid

I've tried several file ids but all I get is an empty result. Is this the correct url format for retrieving a file?

Services module version is 3.

share|improve this question
    
Do you want to download the file? –  Dinesh Kumar Nov 21 '12 at 11:17
    
I managed to get this working in the end. I used the poster plugin to request the url and received a message saying that the file doesn't exist. I'd been using the wrong file ids! I had looked at the wrong drupal database to choose the file ids. –  littledynamo Nov 22 '12 at 11:10
add comment

1 Answer 1

up vote 0 down vote accepted

I managed to get this working in the end. I used the poster plugin to request the url and received a message saying that the file doesn't exist. I'd been using the wrong file ids! I had looked at the wrong drupal database to choose the file ids.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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