Skip to content

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

License

Notifications You must be signed in to change notification settings

spider-gazelle/upload-signer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published