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

Composition API not run handleFilePondInit #269

Open
2 tasks done
majweb opened this issue Nov 25, 2022 · 2 comments
Open
2 tasks done

Composition API not run handleFilePondInit #269

majweb opened this issue Nov 25, 2022 · 2 comments

Comments

@majweb
Copy link

majweb commented Nov 25, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Have you updated Vue FilePond, FilePond, and all plugins?

  • I have updated FilePond and its plugins

Describe the bug

First issue:
I use laravel and Inertiajs. Calls handleFilePondInit and does not invoke it (console.log returns nothing)
Second issue:
I have a props form, gallery in which there are pictures, how to automatically upload these pictures using poster.

const handleFilePondInit = () => console.log("handleFilePondInit");

<file-pond name="imageGallery" ref="pond" label-idle="Przerzuć zdjęcia tutaj..."
maxFileSize="4MB"
allow-multiple="true"
accepted-file-types="image/jpeg, image/png"
labelMaxFileSizeExceeded="Plik jest za duży"
labelMaxFileSize="Maksymalny rozmiar pliku {filesize}"
labelMaxTotalFileSizeExceeded="Maksymalna wartość przekroczona"
labelMaxTotalFileSize="Maksymalny rozmiar pliku {filesize}"
:server="{
url: '',
timeout: 7000,
process: {
url: '/user/upload-gallery-tmp',
method: 'POST',
withCredentials: false,
onload: (response) => response,
onerror: (response) => response
},
revert: {
url: '/user/upload-gallery-revert-tmp',
method: 'DELETE'
},
headers: {
'X-CSRF-TOKEN': csrf
}
}" :files="form.gallery" @init="handleFilePondInit" />

Reproduction

Testing

Environment

- Device:
- OS:
- Broser:
- Vue version:
@majweb majweb added the bug Something isn't working label Nov 25, 2022
@rikschennink rikschennink removed the bug Something isn't working label Nov 28, 2022
@mrkazmierczak
Copy link

@majweb this is working with Composition API. I'm preparing tutorial for FilePond, but I'm fighting with two not working things. I hope that @rikschennink will be helpful. When I'm finish I will make complete tutorial with creating and editing.

@maverickchangithub
Copy link

in your process object , there is no headers passing in , without csrf token , laravel will return 419, so is that the reason your files not uploaded?

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

4 participants