Navigate to the S3 console, and open the S3 bucket created by the deployment.You see a 200 OK response after the file is uploaded. Choose Select file and choose a JPG file to upload.Ĭhoose Send.Choose the Body tab, then the binary radio button.Paste the URL into the Enter request URL box. Using the dropdown, change the method from GET to PUT.Select the + icon next to the tabs to create a new request.The uploadURL attribute contains the signed URL. After the request is complete, the Body section shows a JSON response.In the Postman interface, paste the API endpoint into the box labeled Enter request URL.First, copy the API endpoint from the output of the deployment.The second is with a basic frontend application that demonstrates how to integrate the API. The first is with Postman, which allows you to directly call the API and upload a binary file with the signed URL. I show two ways to test this application. The upload URL is the API endpoint with /uploads appended. Once the deployment is complete, note the APIendpoint output.The API endpoint value is the base URL. At the prompts, enter s3uploader for Stack Name and select your preferred Region.Navigate to the S3 uploader repo and install the prerequisites listed in the README.md.To deploy the S3 uploader example in your AWS account: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |