Skip to content

Parse.File upload problems #558

Closed
Closed
@EnricoMonese

Description

@EnricoMonese

I've been trying this approach as described in the docs

var fileUploadControl = $("#profilePhotoFileUpload")[0];
if (fileUploadControl.files.length > 0) {
  var file = fileUploadControl.files[0];
  var name = "photo.jpg";

  var parseFile = new Parse.File(name, file);
  parseFile.save();
} 

But when I try to do .save() it throws this error a bunch of times
error: Invalid file upload. code=130, message=Invalid file upload.

This only happens when using File, if I use base64 data it works albeit being slower.

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