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

Document HTTP API usage #4

Open
treyhunner opened this issue Jul 12, 2015 · 1 comment
Open

Document HTTP API usage #4

treyhunner opened this issue Jul 12, 2015 · 1 comment

Comments

@treyhunner
Copy link

I plan to implement file uploading without Fine Uploader. I will be implementing the upload using ember-cli/jQuery. I will probably end up reverse-engineering the API by reading the tests and code, but it would be nice to eventually have documentation.

@paulmelnikow
Copy link
Contributor

drf-to-s3 implements two separate APIs, one intended for Fine Uploader, and another intended for API clients.

The Fine Uploader interface is pretty well documented, however I'd suggest that you work with the API-client interface instead.

One guy used the API-client version and wrote his own uploader that ran in the browser (see #1), though it reminds me there is a patch for Content-Type that I think needs to come in.

This test that hits the API-client endpoint is the most succinct. There is also a complete xhr example. The first call gets the signed URI, the second call puts the file onto s3, and the third call tells the server the file has been uploaded.

Agreed that some better documentation explaining the sequence of calls would be useful! Certainly would welcome PRs.

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

No branches or pull requests

2 participants