Hi.
I'm trying to follow the instructions to implement the FilePond UploadBlock for the first time to allow users to upload multiple files. (Filepond is the only Multi-File Upload Forge component that is permitted for use at my employer. ) I got to Step3 of the instructions where I dragged the Upload Block onto my form and was prompted for a Config value:
I can expand the Config Property to see all the individual configurations that I could set on the Block itself, but the instructions do not indicate I should do that here on the block itself:
Instead, I'm supposed to create a Client Action (Function=Yes) called "GetUploadConfig".
Then I'm to set the configurations as assignments. From their instructions:
When I go to the Assign tool on my client action, it looks as it usally does, i.e. nothing like their instructions. Nor do I understand how "Dummy" got there in their screenshot. Is it a variable I was supposed to create and in that case what is its datatype?
My Assign panel looks like how it always looks to me.
How do I get to those fields in the GetUploadConfig action where I can set the Config values like in the instruction screenshot? (2 above).
I'm stuck at this point in the instructions. I'm sure I'll have more questions about Filepond once I get past Step 3, but for now, I can't get past this point to get stuck at the next point. :) Please help. Thanks!
Hi flowcooker,
Thanks for posting these helpful instructions!
I just want to explain the reason for doing it in a client action/function instead of local variable. Both solutions are fine though and will work.
The reason for using a client action is based on an assumption that the same file upload configuration will be used on multiple pages. Using a client action/function allows you to share the same configuration across multiple pages.
Thanks again for making it clearer for the community.
Also apologies, I missed seeing your original post, so didn't reply earlier.
Kind regards,
Stuart
If it helps for someone who may be in a similar stuck position in the future, what you want to do is create a local variable (e.g. "Config" with a data structure of the config params):
Then you'll want to pass the variable in the Upload Block:
I hope this saves someone confusion in the future.
I've been facing an issue when I set max files property to default (empty or anything else but 1).So when limiting the nr of files to 1 I have no issue I can upload anything and it shows in the same moment what i'm uploading in the blockWhen I remove the Max files (1) or put it +1 (exemple Max files: 10) It uploads everything but never shows me what I'm uploading..Anyone facing that issue?