upload-signer

Provide API for generating pre-signed URLs for file uploads to cloud storage

Uploadsigner

Crystal shard to provide API for generating pre-signed URLs for file uploads to cloud storage. This shard was created to provide direct to cloud uploads using browser functionality to PlaceOS, but is designed to be generic and can be used with any library and/or application.

Currently supports Amazon S3 and Azure Storage (Blob)

Benefits of moving file uploads functionality near to end user are:

  • Off-loads processing to client machines
  • Better guarantees against upload corruption
  • file hashing on the client side
  • Upload results are guaranteed
  • user is always aware of any failures in the process
  • Detailed progress and control over the upload

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      upload-signer:
        github: spider-gazelle/upload-signer
    
  2. Run shards install

Usage

require "upload-signer"

Development

crystal spec

Contributing

  1. Fork it (https://github.com/spider-gazelle/upload-signer/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
Repository

upload-signer

Owner
Statistic
  • 2
  • 0
  • 0
  • 1
  • 2
  • 2 months ago
  • August 4, 2023
License

MIT License

Links
Synced at

Sun, 22 Dec 2024 02:15:03 GMT

Languages