Skip to content

Cannot create a Parse.File without valid data URIs or base64 encoded data. #1512

Closed

Description

@manikandankumaran

Kindly advice me to resolve that issue. Please provide the solution.

New Issue Checklist

Issue Description

I am using Parse version - 3.4.3. I am trying to parse file with base64. The Base64 file should be large. When I try with large base64 string it will throw this error.

Cannot create a Parse.File without valid data URIs or base64 encoded data.

Steps to reproduce

Parse large base64 string you will get this error
Filesystem.readFile({
path: path
})
.then(res => {
let ParseFile = new Parse.File(filename, { base64: basefile }); // Issue Occur here
console.log('fs: ', res.data);
})
.catch(err => console.log('fs err: ', err));

Actual Outcome

Cannot create a Parse.File without valid data URIs or base64 encoded data.

Expected Outcome

Need to save the file.

Environment

Parse version - 3.4.3
Ionic @latest
NPM Latest LTS
Capacitor

Server

  • Parse Server version: ``
  • Operating system: Mac OS
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): FILL_THIS_OUT

Database

  • System (MongoDB or Postgres): FILL_THIS_OUT
  • Database version: FILL_THIS_OUT
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): FILL_THIS_OUT

Client

  • Parse JS SDK version: 3.4.3

Logs

Screenshot 2022-07-22 at 9 56 28 PM

I have attached the screenshot for your reference.

Activity

  1. parse-github-assistant commented on Jul 22, 2022

    @parse-github-assistant

    Thanks for opening this issue!

    • ❌ Please edit your post and use the provided template when creating a new issue. This helps everyone to understand your post better and asks for essential information to quicker review the issue.
  2. manikandankumaran commented on Jul 22, 2022

    @manikandankumaran
    Author

    I have updated the query Please let me know if you need any other information...

  3. mtrezza commented on Jul 22, 2022

    @mtrezza
    Member

    Could you please submit a PR with a failing test?

  4. added
    type:bugImpaired feature or lacking behavior that is likely assumed
    on Jul 22, 2022
  5. shashi-chemist2u commented on Oct 13, 2022

    @shashi-chemist2u

    I am also getting this issue with 3.4.4 version, for any valid base64 string it's throwing Cannot create a Parse.File without valid data URIs or base64 encoded data, however with version 3.4.1 it's fine.

    attached screenshot for error

    image

  6. mtrezza commented on Oct 13, 2022

    @mtrezza
    Member

    The fix has been implemented in 3.5.0-alpha.2. If the issue still exists there, please let us know and we can re-open this issue.

    Closing via #1543

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

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions