问题
I've init filepond with jquery and i need to close browse panel showing after uploading file to close when file uploaded.
So far i set filepond server this way:
server: {
process: {
url: window.urls.process_files,
method: 'POST',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content'),
mimes: accepted_file_types
},
onload: (response) => {
const res = JSON.parse(response);
},
}
I need to close uploaded area with preview to blank uploading panel when file uploaded (in the onLoad method):
To:
I know that with allowRevert
can remove the undo button but i need the uploaded instance to return to default.
Thanks in advance.
来源:https://stackoverflow.com/questions/58471218/how-can-i-close-filpond-browse-area-after-upload