Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add upload session support #2

Open
tj opened this issue Nov 28, 2015 · 3 comments
Open

Add upload session support #2

tj opened this issue Nov 28, 2015 · 3 comments

Comments

@tj
Copy link
Owner

tj commented Nov 28, 2015

No description provided.

@jpillora
Copy link

Proposal 1

func (c *Files) ChunkedUpload(in *UploadInput) (out *UploadOutput, err error)

Proposal 2

We add an optional Length (or KnownLength) to UploadInput, then make ChunkedUpload() private and automatically perform a chunked upload when Length > 150MB (though this might be too magical).

Proposal 3

func (c *Files) UploadSession(in *UploadSessionInput) (session *UploadSession, err error)

Where these new types fully expose the semantics of https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start (i.e. UploadSession.Append() and UploadSession.Finish()). This is probably the most suitable since I believe this library is aiming to be a 1:1 mapping.

@tj Thoughts?

Also, if anyone decides to implement this, please post here and mention you're working on it. Hopefully I'll find time though can't say when...

(My current use-case is an Afero Dropbox interface)

@jpillora
Copy link

Edit, fixed formatting

@tj
Copy link
Owner Author

tj commented Jan 10, 2016

In this package I'd definitely like to just mirror their end-points 1:1, go-dropy can provide something more useful on top. I haven't started any work on it though I actually just needed download functionality for now :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants