Skip to main content
Question

API - File Attachment Download - Resource not found

  • Oct 28, 2022 7:23 PM UTC
  • 0 replies
  • 189 views

Hello,

I have a problem downloading file attachments with the API.  My current language of choice is Python.

I have researched several articles on this topic however no joy yet.

If I query an attachment using the following syntax I can see the file in the browser.  So I know my user token and parameters are correct.

https://domain.quickbase.com/up/dbid/a/r_recordid/e_fileid/vversion?usertoken=user_token

However when I use the API to try to download the file I only get "Resource not found" as a response.

I have attached an image with my python script.

Any help / guidance would be greatly appreciated.  

Thanks!

------------------------------
Scott Paxton
------------------------------
This topic has been closed for replies.

  • Author
  • Observing
  • Oct 28, 2022 7:26 PM UTC
Sorry one typo.  I meant to type fieldID not fileID in the url example.

------------------------------
Scott Paxton
------------------------------

Forum|alt.badge.img+6
  • Quickbase Staff
  • Oct 31, 2022 2:24 PM UTC
Hi Scott,

In the Authorization setting in headers, it appears you're just sending the token itself.  I think you meant to use:

'Authorization': auth_str

Hope that helps!

------------------------------
Doug Henning
------------------------------