-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
Hi
Could you help me to implement file upload with parse server on client side and on server side.
Before migration to parse server, on client side, I used:
`myDropzone.on("addedfile", function(myfile) {
if(myfile && (myfile.size<3000000)){
var name = "avatar.png";
var parseFile = new Parse.File(name,myfile);
parseFile.save().then(function(){
Parse.Cloud.run("modify_avatar", {A:parseFile},{
success: function(reponse){
//on cloud code I attached the file path to User class.
},
error: function(error){ console.log(error); }
});
}, function(error){});
////
}
});`
That worked perfectly but now with parse server I do not know how to make it work.
I have my db on mongodb and deployed parse server on heroku. Everything is working fine except this file upload that I can't manage.
Thank you for your help.
Metadata
Metadata
Assignees
Labels
No labels