0

I tried using Data Table api but I get "AccessDenied" error for FileBox table.

[NoTableAccess]Access denied to table FileBox

Does Infusionsoft not allow updating fields of FileBox table? Is there any other way to set files as Public?

Ashit Vora
  • 2,902
  • 2
  • 27
  • 39

1 Answers1

0

In order to upload a file to FileBox you need to use FileService.uploadFile API method.

Call to FileService.getDownloadUrl will return you public URL of a file.

Please note file ID is returned on FileService.uploadFile method call. You can use this ID when requesting URL of a file by FileService.getDownloadUrl method call.

You cannot change Public field value (as any others in FileBox table), because they have read access only.

Y. E.
  • 687
  • 1
  • 10
  • 29
  • I can not get Download URL for file uploaded via API. It throws an error saying that file is not public. – Ashit Vora Sep 02 '16 at 03:04
  • What I'm not trying to do is call getFile to get base64encoded data and then create a file out of it. But the generated file is corrupted. Not sure how to fix that. – Ashit Vora Sep 02 '16 at 03:05
  • There was an issue with the way I was decoding it. I now decode the data, create a file and store it on S3 and return S3 url to user which is valid for 24 hrs and then file is automatically removed from S3. – Ashit Vora Sep 12 '16 at 04:33