Skip to content

Composition API not run handleFilePondInit  #269

@majweb

Description

@majweb

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions