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

How to use the same form for edit case using the library ? #207

Closed
swapneshk opened this issue Aug 12, 2014 · 1 comment
Closed

How to use the same form for edit case using the library ? #207

swapneshk opened this issue Aug 12, 2014 · 1 comment

Comments

@swapneshk
Copy link

Currently I am able to save the images with the library, but I am using the same form for edit case so I need to show the image in edit mode. During Image upload a thumbnail/image is populated just below the upload button with a start button on it on clicking the button image gets saved.

Now in edit case I am using the save form so I believe it should load in the thumbnail/image div below the upload button so to know the case of edit, how could I do this in your plugin for the edit case to work properly as I am unable to find any tut on this (edit case)?

@nervgh
Copy link
Owner

nervgh commented Aug 12, 2014

Preview is conversion of File to CanvasRenderingContext2D.
Saving is conversion of CanvasRenderingContext2D to Blob.

item._file = {File|Blob};

https://github.com/nervgh/angular-file-upload/blob/v1.1.0/src/module.js#L445
https://github.com/blueimp/JavaScript-Canvas-to-Blob

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