pqina / filepond

🌊 A flexible and fun JavaScript file upload library
https://pqina.nl/filepond
MIT License
15.16k stars 825 forks source link

Error during upload #479

Closed patie closed 4 years ago

patie commented 4 years ago

Hi,

im trying filepond with php backend, i select image, and i click on upload button.. im see in console (when i add events) "error during upload" with no more info..

<input type="file" name="filepond">
import * as FilePond from 'filepond/dist/filepond';
const inputElement = document.querySelector('input[type="file"]');

FilePond.setOptions({instantUpload: false,
    name: 'filepond',
    maxFileSize: '5MB',
    files: [],
    server: {
        url: '/api/advert/image',
        process: '/process',
        fetch: null,
        load: null,
    }
});

when i try call from api client /api/advert/image/process return text/plain with id, nothing more.. i dont understand where can be problem.. what im missing? thanks

rikschennink commented 4 years ago

Please ask questions on Stack Overflow.

You can take a look at the FilePond php server example for comparison.