Skip to content

How to implement file upload with parse server #213

Closed

Description

@cyboolo

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.

Activity

  1. smanikandan14 commented on Feb 3, 2016

    @smanikandan14

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

  2. gfosco commented on Feb 5, 2016

    @gfosco
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions