-
Notifications
You must be signed in to change notification settings - Fork 12
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
setOptions is not a function #21
Comments
When using a framework you can pass the options to the component directly. <FilePond
bind:this={pond}
{name}
server={{
process: "http://localhost:8081/v1/model",
fetch: null,
revert: null,
}}
allowMultiple={true}
oninit={handleInit}
onaddfile={handleAddFile}
/>
|
Were you ever able to figure out the styling? mine looks exactly the same. |
I copied the styles from their home page. What is in the docs didnt seem to do anything. |
The problem is that i do not have the destory method available on the pond variable. This makes reactivity a bit hard to do. |
@RemcoE33 when the |
Perhaps useful, an example project: https://stackblitz.com/github/pqina/pintura-example-filepond |
Describe the bug
I have tried to follow the docs at https://pqina.nl/filepond/docs/api/server/#process to set server options. According to he docs I should put the following in my svelte script:
My svelte page looks like:
When I do i get a 500 error and the browser console tells me:
I have also tried it as:
page.setOptions(....)
This also does not work.
However when I do not try to setOptions and just use the doc as is, it does seem to work. At least according to my server.
To Reproduce
Use this sveltekit page in a sveltekit app
Expected behavior
If I follow the docs it should work
As a side question, how can I style the fileset div. Mine looks pretty bad:
The text was updated successfully, but these errors were encountered: