🏠 PlatformOS Examples

Direct upload using uppy (uppy.io)

Uppy plugins used:

  1. Dashboard
  2. DragDrop
  3. GoldenRetriever
  4. AwsS3

Source code of this example: JS, HTML


URLs to uploaded files:


    Direct upload using HTML form

    Choose your image
    Debug information coming from s3_upload key
    {"form_data":{"key":"uploads/28fad397-c1ca-4335-b57d-35ad3ec3505f/${filename}","success_action_status":"201","acl":"public-read","Content-Disposition":"inline","x-amz-meta-versions":"{}","policy":"eyJleHBpcmF0aW9uIjoiMjAyMC0wMS0xOFQxOTozNzoxN1oiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJ1cGxvYWRzLnN0YWdpbmcub3JlZ29uLnBsYXRmb3JtLW9zLmNvbSJ9LFsic3RhcnRzLXdpdGgiLCIka2V5IiwidXBsb2Fkcy8yOGZhZDM5Ny1jMWNhLTQzMzUtYjU3ZC0zNWFkM2VjMzUwNWYvIl0seyJzdWNjZXNzX2FjdGlvbl9zdGF0dXMiOiIyMDEifSx7ImFjbCI6InB1YmxpYy1yZWFkIn0seyJDb250ZW50LURpc3Bvc2l0aW9uIjoiaW5saW5lIn0seyJ4LWFtei1tZXRhLXZlcnNpb25zIjoie30ifSx7IngtYW16LWNyZWRlbnRpYWwiOiJBS0lBNElNS0lXWVZGNjVYM1I2Ui8yMDIwMDExOC91cy13ZXN0LTIvczMvYXdzNF9yZXF1ZXN0In0seyJ4LWFtei1hbGdvcml0aG0iOiJBV1M0LUhNQUMtU0hBMjU2In0seyJ4LWFtei1kYXRlIjoiMjAyMDAxMThUMTgzNzE3WiJ9XX0=","x-amz-credential":"AKIA4IMKIWYVF65X3R6R/20200118/us-west-2/s3/aws4_request","x-amz-algorithm":"AWS4-HMAC-SHA256","x-amz-date":"20200118T183717Z","x-amz-signature":"4b1ada190bfc2b19988cc46dcf9900ad8c2783d51a5e6f6d69d5553be778cf5f"},"direct_upload_url":"https://s3-us-west-2.amazonaws.com/uploads.staging.oregon.platform-os.com"}
      
    

    Direct upload using AJAX

    Choose your image
    Preview

    Heads up! Example below require you to be logged in as *developer*.
    If you dont have developer account, create it here.

    Uploading Files Directly to Amazon S3 and using uploaded file as an avatar

    Profile text field


    Preview