Copy link to clipboard
Copied
Hello,
I am allowing users to attach multiple files using BC forms.
The code is working on the user side but then I can only find the first uploaded file (photos) in the "Case, Related Files", all other attachments are not there.
Here is the code I have for the file attachment input field:
"<input class="cat_textbox" type="file" name="FileAttachment" id="FileAttachment" multiple data-imagevalidate="yes" capture="camera" file-accept="jpg, jpeg, png" file-maxsize="3718"/>"
I don't know what else to do.
Thanks.
Copy link to clipboard
Copied
Read this doc: Customizing WebForms
Each file attachment needs a unique name and ID. IE:
<input class="cat_textbox" type="file" name="FileAttachment1" id="FileAttachment1" multiple data-imagevalidate="yes" capture="camera" file-accept="jpg, jpeg, png" file-maxsize="3718"/>
<input class="cat_textbox" type="file" name="FileAttachment2" id="FileAttachment2" multiple data-imagevalidate="yes" capture="camera" file-accept="jpg, jpeg, png" file-maxsize="3718"/>
etc.
Copy link to clipboard
Copied
Thanks Lynda,
What I successfully achieved was to give users the possibility to select multiple photos on their phone or desktop with one input and to submit the form successfully (see attached screenshots).
The main issue is that on the back-end, in the CRM, there is only the first one file and the others seem to "evaporate".
Selecting multiple files with control+select (also works on mobile).
Input shows that 3 files have been selected for submission.
Copy link to clipboard
Copied
Hi
Could you please share the site URL and link to the page where the form is placed?
Copy link to clipboard
Copied
Hi Anshul,
The URL is Fyxme.com, the form is: Home in the accordion.
Copy link to clipboard
Copied
Hi
I checked the page and the form you have placed on the home page , I can see you have placed one field to attach file , hence when the form is submitted, only one file gets uploaded in CRM cases , take a look :
In order to have, multiple files uploaded when form is submitted, you will need to modify the Form code and have multiple similar file attachment fields added to the form . This way, user will then have option to upload multiple files to individual file attachment fields.
For more details on this and to know how to have this implemented, you may find this tutorial helpful : Customizing WebForms
Regards
Anshul Sharma | Adobe Business catalyst Team
Copy link to clipboard
Copied
Thank you Anshul,
So using "multiple" in the input code only allows miltiple files in the front-end but not in the back-end right?