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

[Bug] The method getFileEncodeDataURL() stopped working. #944

Open
2 tasks done
jeanjoaquim opened this issue Nov 13, 2023 · 1 comment
Open
2 tasks done

[Bug] The method getFileEncodeDataURL() stopped working. #944

jeanjoaquim opened this issue Nov 13, 2023 · 1 comment
Labels

Comments

@jeanjoaquim
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Have you updated FilePond and its plugins?

  • I have updated FilePond and its plugins

Describe the bug

Three days ago the code below was working properly, today for some reason I'm getting this error: "pond.getFile(...).getFileEncodeDataURL is not a function" and I can't find the method anywhere as I used to.

Did something changed in the past few days? Or am I doing something wrong and it just happened to work for some reason?

Reproduction

const  pond = FilePond.find(document.querySelector(".filepond--root"));

for (i = 0; i <= (pond.getFiles().length - 1); i++) {
const myImage = document.createElement("img");
myImage.src = pond.getFile(i).getFileEncodeDataURL();
}

Environment

- Device:
- OS:
- Browser:
@rikschennink
Copy link
Collaborator

Should be fixed in 2.1.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants