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

addFile() method not working #8

Open
Sudeep658 opened this issue Feb 14, 2019 · 4 comments
Open

addFile() method not working #8

Sudeep658 opened this issue Feb 14, 2019 · 4 comments

Comments

@Sudeep658
Copy link

Hi,

I am trying to use the addFile method to add image dynamically using jquery. I am getting addFile is not function error. How can i solve this?

Thanks in advance

@rikschennink
Copy link
Collaborator

rikschennink commented Feb 14, 2019

Please see docs: https://pqina.nl/filepond/docs/patterns/frameworks/jquery/

$('.my-pond').filepond('addFile', 'my-file.jpeg').then(function(file){
    console.log('file added', file);
});

@Sudeep658
Copy link
Author

What should i pass in the place of index.html?

@Sudeep658 Sudeep658 reopened this Feb 14, 2019
@rikschennink
Copy link
Collaborator

The file you want to add. Either a File Object, URL, or dataURI.

@rikschennink
Copy link
Collaborator

I've renamed the file in the example snippet

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

2 participants