Show Alert if uploaded file name doesn't contain file format not working

Hi there,

please help me understand why its not working,

i want to show an alert when each file is uploaded its not formatted as PDF,

i am using Multi-file Uploader from bubble and i am making Show Alert Only when:
Multi-FileUploader Value: each items file name doesn’t contain “.pdf”

both files uploaded are PDF and ending on .pdf but the alert shows anyway
its works when i select first item instead each item

Thansk you in advice
Best Regards

Hello @Nocoderr ,

I have solved this problem using another method. You can solve your problem using my method.

Create a field type in the database as the list of files.

Screen Shot 2022-12-20 at 1.04.39 PM

Create a custom state with lists enabled.

Then use the file uploader element, Alert message (Wrong format), and repeating group.

Then start a workflow on file uploader. Set the condition (when the file doesn’t contain .pdf then run that workflow) as shown in the screenshot on the workflow.

Copy the same workflow and change the condition (when the file contains .pdf then run that workflow) as shown in the screenshot on the workflow.


Set custom state as shown when the file contains .pdf

Once the custom state is done. We need to show the custom state data in the repeating group in order to edit the files.

Start the workflow on the delete button which will edit the custom state.

On submit button save the custom state data to the database.

I think this might help you.If any further assistance is required please contact me on:

LinkedIn:- Karamjit Singh - Aprintaa - Rank First To Earn Fast! | LinkedIn
Gmail:- karamwise@gmail.com

Hello @karamwise,

thanks you for your method and tutorial, i will try to do it, but seems its a lot of steps
i think i miss something but where u have on "Only When This Fileuploader value "file name " i have :eachfilename because i have list of things and Multi Uploader work with list of Value´s,

i don’t know why the Only when doesn’t work on ;eachfilename it seems not recognize it you know why?

Best Regards

This topic was automatically closed after 70 days. New replies are no longer allowed.