Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

3 - Allow a <canvas> to be passed in to the API for upload #1198

Closed
rnicholus opened this issue May 3, 2014 · 3 comments
Closed

3 - Allow a <canvas> to be passed in to the API for upload #1198

rnicholus opened this issue May 3, 2014 · 3 comments
Assignees
Milestone

Comments

@rnicholus
Copy link
Member

This would essentially add an addCanvases API method. This would essentially turn the <canvas> into a Blob using the code in Scaling module. Since we already have an addBlobs and an addFiles, maybe we should just repurpose addFiles to access Blob or <canvas> or File, or <input type="file"> and deprecate addBlobs.

Inspired by my FedEx Day Project (code/docs still need polish), and this Stack Overflow question.

@rnicholus rnicholus changed the title Allow a <canvas> to be passed in to the API for upload 3 - Allow a <canvas> to be passed in to the API for upload May 6, 2014
@rnicholus rnicholus self-assigned this Jun 4, 2014
rnicholus pushed a commit that referenced this issue Jun 4, 2014
…ethod

- Deprecated addBlobs.
- Removed addBlobs from documentation.
- Redirected unit tests that called addBlobs to use addFiles instead
- addFiles now handles the work of addBlobs and, of course, addFiles
- re-organized addFiles
TODO: accept `<canvas>`

#1198
rnicholus pushed a commit that referenced this issue Oct 3, 2014
rnicholus pushed a commit that referenced this issue Oct 3, 2014
TODO:
- canvas to addFiles unit tests
- manual canvas uploading tests

#1198
rnicholus pushed a commit that referenced this issue Oct 6, 2014
rnicholus pushed a commit that referenced this issue Oct 6, 2014
rnicholus pushed a commit that referenced this issue Oct 6, 2014
rnicholus pushed a commit that referenced this issue Oct 6, 2014
@rnicholus
Copy link
Member Author

This feature is now complete in the 5.1.0 pre-release branch (develop).

@cavill
Copy link

cavill commented Jan 2, 2015

Is there any documentation on how to implement this anywhere? (thanks)

@rnicholus
Copy link
Member Author

Yes, we've updated the addFiles API method documentation. http://docs.fineuploader.com/branch/master/api/methods.html#addFiles

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

No branches or pull requests

2 participants