🏠 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/64dc0b60-aa1c-4ff7-b2d8-4561a8268324/${filename}","success_action_status":"201","acl":"public-read","Content-Disposition":"inline","x-amz-meta-versions":"{}","policy":"eyJleHBpcmF0aW9uIjoiMjAxOS0xMS0xMlQyMDowODo1N1oiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJ1cGxvYWRzLnByb2QwMS5vcmVnb24ucGxhdGZvcm0tb3MuY29tIn0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJ1cGxvYWRzLzY0ZGMwYjYwLWFhMWMtNGZmNy1iMmQ4LTQ1NjFhODI2ODMyNC8iXSx7InN1Y2Nlc3NfYWN0aW9uX3N0YXR1cyI6IjIwMSJ9LHsiYWNsIjoicHVibGljLXJlYWQifSx7IkNvbnRlbnQtRGlzcG9zaXRpb24iOiJpbmxpbmUifSx7IngtYW16LW1ldGEtdmVyc2lvbnMiOiJ7fSJ9LHsieC1hbXotY3JlZGVudGlhbCI6IkFLSUE0SU1LSVdZVktaNkpFN1g3LzIwMTkxMTEyL3VzLXdlc3QtMi9zMy9hd3M0X3JlcXVlc3QifSx7IngtYW16LWFsZ29yaXRobSI6IkFXUzQtSE1BQy1TSEEyNTYifSx7IngtYW16LWRhdGUiOiIyMDE5MTExMlQxOTA4NTdaIn1dfQ==","x-amz-credential":"AKIA4IMKIWYVKZ6JE7X7/20191112/us-west-2/s3/aws4_request","x-amz-algorithm":"AWS4-HMAC-SHA256","x-amz-date":"20191112T190857Z","x-amz-signature":"d549ccd611223b994c06285edad29884e1e6d29c8104d78950e27312e101e0d9"},"direct_upload_url":"https://s3-us-west-2.amazonaws.com/uploads.prod01.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