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

Save Dropped file with couchdb #50

Open
nirmal-tops opened this issue Aug 3, 2015 · 0 comments
Open

Save Dropped file with couchdb #50

nirmal-tops opened this issue Aug 3, 2015 · 0 comments

Comments

@nirmal-tops
Copy link

I am using couchdb jquery api.
With normal input type file, I am saving image as attachment with ajaxsubmit request .

HTML::

JS::

$('#form_id').ajaxSubmit({
// Submit the form with the attachment
url: "/"+ database_name +"/"+ couchdb_document_id,
success: function(response) {
console.log("success");
},
error: function(data, error, reason) {
console.log("error");
}
});

Now I want to save dropped file. but I am getting base64 encoded string, which is representing the image.

I want to drooped image as a file object. How can I get same file object for dropped element, as I am getting while uploading with input type file.

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

1 participant