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 implement file upload with parse server #213

Closed
cyboolo opened this issue Feb 3, 2016 · 2 comments
Closed

How to implement file upload with parse server #213

cyboolo opened this issue Feb 3, 2016 · 2 comments

Comments

@cyboolo
Copy link

cyboolo commented Feb 3, 2016

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.

@smanikandan14
Copy link

I have reported the issue #136. Haven't got any response yet.

@gfosco
Copy link
Contributor

gfosco commented Feb 5, 2016

We'll look at fixing this very soon, please follow on in #136.

@gfosco gfosco closed this as completed Feb 5, 2016
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

3 participants