filepond

How to make thumbnails with Filepond, along with the normal sized upload

こ雲淡風輕ζ 提交于 2021-02-10 14:40:43
问题 I've managed to make Filepond upload files, put them in the right folder and add the necessary details to a mysql database. However, since the original images are very high resolution, I need to make thumbnails. Smaller versions of the images that should go in a subfolder called "thumbnails". I am using the PHP boiler plate, and some of the documentation don't cover the methods used there. For instance, I tried, just for testing, to do this: FilePond.setOptions({ maxFileSize: '25MB',

How to make thumbnails with Filepond, along with the normal sized upload

房东的猫 提交于 2021-02-10 14:37:14
问题 I've managed to make Filepond upload files, put them in the right folder and add the necessary details to a mysql database. However, since the original images are very high resolution, I need to make thumbnails. Smaller versions of the images that should go in a subfolder called "thumbnails". I am using the PHP boiler plate, and some of the documentation don't cover the methods used there. For instance, I tried, just for testing, to do this: FilePond.setOptions({ maxFileSize: '25MB',

add an icon/div to the preview images when onactivatefile is fired (Filepond)

*爱你&永不变心* 提交于 2021-02-10 03:03:51
问题 Background: I have a django project where a user can upload multiple images, and one of them will be the main image. I am using Filepond to upload and optimize images. The order that Filepond uploads files is not always the same as the order of files selected by a user. Because of that, I try to provide an option for user where a user clicks on a file (in this case, showed as a preview image) and the clicked file will become the main image. I used the following code to log user-clicked image

add an icon/div to the preview images when onactivatefile is fired (Filepond)

烂漫一生 提交于 2021-02-10 03:02:43
问题 Background: I have a django project where a user can upload multiple images, and one of them will be the main image. I am using Filepond to upload and optimize images. The order that Filepond uploads files is not always the same as the order of files selected by a user. Because of that, I try to provide an option for user where a user clicks on a file (in this case, showed as a preview image) and the clicked file will become the main image. I used the following code to log user-clicked image

How do I set up multiple FilePond file input elements on the same page?

ぃ、小莉子 提交于 2021-02-08 11:15:23
问题 Whenever I try to create multiple Filepond inputs on the same webpage, only the first input get styled and works perfectly as the example on the FilePond website the others doesn't work. Please help as I have tried my best and still not getting it. ScreenShot of what I mean 回答1: It looks like the fields in the screenshot are not initialised, you need to target each field you want to turn into a FilePond instance. See example code here for a single instance. https://pqina.nl/filepond/docs

How do I set up multiple FilePond file input elements on the same page?

此生再无相见时 提交于 2021-02-08 11:14:08
问题 Whenever I try to create multiple Filepond inputs on the same webpage, only the first input get styled and works perfectly as the example on the FilePond website the others doesn't work. Please help as I have tried my best and still not getting it. ScreenShot of what I mean 回答1: It looks like the fields in the screenshot are not initialised, you need to target each field you want to turn into a FilePond instance. See example code here for a single instance. https://pqina.nl/filepond/docs

I'm getting request too large Error 413 when submiting file in laravel

丶灬走出姿态 提交于 2021-02-05 08:10:42
问题 I'm using laravel and filepond to upload some files. It works fine with files smaller than 100MB, but if I try to upload bigger (400MB) files I get 413 error. I have already increased post_max_size and upload_max_filesize in php.ini and changed client_max_body_size in nginx, but it still does not work. I'm missing something? Best regards 回答1: Its php and nginx related. Check which php.ini is used php --ini Sometimes there are multiple ones that change the original value Search in all php.ini

How can i close filpond browse area after upload

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-11 13:10:05
问题 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