I am considering using S3 for managing file uploads for my project. I have read multiple tutorial & have a fair understanding of implementing S3.
Using the file uploads component, I know how to store file URLs in the DB.
I want to understand, can I use the App Connect S3 Upload component to store file URL's for multiple uploads. And if yes, then how to create SA for storing multiple URLs of the file uploads in the DB.
@Teodor You never touched on how to retrieve the file’s object storage URL so it can be loaded into a database. There seem to be several issues with the multi component as well.
When using the S3 Sign Upload Template in Server Connect, the Set Value “url = {{sign}}” step is not capturing any data. It is “undefined”, shown from my server logs:
server-connect:output url: undefined +4ms
The correct variable reference would be signedUrl, which is the Name given to the S3 Sign Upload URL step. I’m currently using the following to just get the file’s URL:
{{signedUrl.split('?').top(1)}}
Also, it should be said that when using the Multi template, the signed URL API will be called once for each file submitted. This requires an approach in the App Connect or separate Server Connect API to be ready to handle each file’s URL so they can be stored in the application’s DB.