🏠 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/4ffdb8f5-9780-47cf-93a4-59ebd4674795/${filename}","success_action_status":"201","acl":"public-read","Content-Disposition":"inline","x-amz-meta-versions":"{}","x-amz-meta-acl":"public-read","x-amz-meta-content-disposition":"inline","policy":"eyJleHBpcmF0aW9uIjoiMjAyMC0wOS0yNlQxOTo0OToxMVoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJ1cGxvYWRzLnN0YWdpbmcub3JlZ29uLnBsYXRmb3JtLW9zLmNvbSJ9LFsic3RhcnRzLXdpdGgiLCIka2V5IiwidXBsb2Fkcy80ZmZkYjhmNS05NzgwLTQ3Y2YtOTNhNC01OWViZDQ2NzQ3OTUvIl0seyJzdWNjZXNzX2FjdGlvbl9zdGF0dXMiOiIyMDEifSx7ImFjbCI6InB1YmxpYy1yZWFkIn0seyJDb250ZW50LURpc3Bvc2l0aW9uIjoiaW5saW5lIn0seyJ4LWFtei1tZXRhLXZlcnNpb25zIjoie30ifSx7IngtYW16LW1ldGEtYWNsIjoicHVibGljLXJlYWQifSx7IngtYW16LW1ldGEtY29udGVudC1kaXNwb3NpdGlvbiI6ImlubGluZSJ9LHsieC1hbXotY3JlZGVudGlhbCI6IkFLSUE0SU1LSVdZVkY2NVgzUjZSLzIwMjAwOTI2L3VzLXdlc3QtMi9zMy9hd3M0X3JlcXVlc3QifSx7IngtYW16LWFsZ29yaXRobSI6IkFXUzQtSE1BQy1TSEEyNTYifSx7IngtYW16LWRhdGUiOiIyMDIwMDkyNlQxODQ5MTFaIn1dfQ==","x-amz-credential":"AKIA4IMKIWYVF65X3R6R/20200926/us-west-2/s3/aws4_request","x-amz-algorithm":"AWS4-HMAC-SHA256","x-amz-date":"20200926T184911Z","x-amz-signature":"beb51b47ed73f60957a3542e186784cedb0092fdea82227a99527498cf942b03"},"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