xis / baraka

a tool for handling file uploads simple

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implementation of the S3 Store

xis opened this issue · comments

We can create a S3Store (or another name) like FileSystemStore in the saver.go file.

like,

package baraka

type S3Store struct {
    // specific settings
}

func NewS3Store(/* specific settings */) S3Store {
    return S3Store{
        // specific settings
    }
}

func (s S3Store) Save(path string, filename string, part *Part) error {
    // specific things to upload part's bytes to the s3
}

so, we can easily upload the files to the s3 with this implementation.

I would like to work on this issue