Open dp1140a opened 1 year ago
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 <FilePond>
component is removed it automatically calls the destroy logic.
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: