Direct transfer docs stored on Amazon S3 bucket directly to Box for rendering back to the browser
Hello!
We utilize Box to provide a method for our users to view documents in their browser from our site via a hosted iframe. The issue currently is that these documents are stored on a remote Amazon S3 server and are currently being downloaded to our server and then re-uploaded up to Box for processing.
Is there a way to eliminate the need for our server to download these documents first and instead, with proper authentication/authroization, ask Box to download / or Amazon to upload the file to Box for processing, with a callback via a webhook to our sever when the file is ready to be viewed?
Thanks!
-
Unfortunately, this is currently not possible. We don't have a way to upload files to Box by providing a URL to a file.
As you mentioned, you would have to download the file from S3 to your server, upload it to Box, and then call the Generate Embed Link endpoint to preview the file.
A potential workaround to enable this use case without a server would be using a middleware service like Zapier that has prebuilt integrations with Box and S3. Another workaround would be using AWS Lambda download the file from S3 and then upload it to Box.
-
Hi Murtza,
Thanks for your reply.
I discovered this in the URL Upload in the View API documentation:
https://view.box.com/reference#post-documents
and am wondering if this is what I should use or is this API becoming deprecated? If it is being deprecated, is there anything similar in the current .NET SDK?
Please sign in to leave a comment.
Comments
2 comments