go-s3-updown-server

command module
v0.0.0-...-8c5ffca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2019 License: MIT Imports: 11 Imported by: 0

README

go-s3-updown-server

Demo for how to upload and download files to s3 via a a golang web server.
TODO:
  • refactor and clean up
    • create s3 package to abstract, make s3 struct.
    • share session between s3 calls
    • document how download works
    • PR to keep abstraction layer in gin gonic with download endpoint
  • delete files
  • write how to deploy the server... fargate would be cool
  • provision bucket
    • create terrform for bucket and keep it in repo
  • Add name and uploaded date
  • add drag and drop
  • Write blog entry
  • research the following fields
    • ContentLength: aws.Int64(size)
    • ContentType: aws.String(http.DetectContentType(buffer))
    • ContentDisposition: aws.String("attachment")
    • ServerSideEncryption: aws.String("AES256")
  • Filename SHOULD NOT be trusted. See Content-Disposition on MDN
  • add directories

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL