How can i close filpond browse area after upload

与世无争的帅哥 提交于 2020-01-11 13:08:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!