filepond

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

How to fix “Uncaught reference error : FilePond is not defined” in FilePond drag and drop

大憨熊 提交于 2019-12-11 09:37:34
问题 I am trying to use FilePond to implement drag and drop functionality on my website. I have downloaded the filepond css and js files and attatched them correctly. I keep getting an "Uncaught reference error : FilePond is not defined" whenever I try to finish the setup. {% extends 'main/dashboardbase.html'%} {% block content %} {% load static %} <!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial