I have a website I built for my construction company. I’m adding in the ability to send our bid to the customer from our website. I’m using the PDF Conjurer plugin. I have it set to title the pdf as " Contractor name - Job Name" based on whatever we named it on my website.
Here’s the issue, when it shows up with the email that is sent, the title of the pdf file is “contractor%20name%20-%20-Job%20Name%20.PDF”
Basically it puts “%20” in between every word. I’m wondering why it’s doing this and if it can be fixed so it just has a normal clean looking title
Hmm Not that I know of. You can ask the plugin developer to see if they can make an option for that but I think they have it like that for a good reason.
Thank you for reaching out and apologies for the delayed response over the weekend.
The issue you’re experiencing occurs because %20 is a standard URL encoding for spaces in file names. When Bubble generates or references a file URL, it automatically replaces spaces with %20 to ensure compatibility with web standards.
To better assist you, could you please share how you are sending the emails? Specifically, which dynamic expression are you using to attach the PDF?
If you are attaching the PDFModel A’s Saved PDF’s URL, this behavior is expected as the URL comes directly from Bubble’s file manager. However, there’s a simple workaround:
You can use the :find and replace operator to clean up the file name. Replace %20 with an actual space (" "). Here’s how:
Use the dynamic expression PDFModel A’s Saved PDF’s URL:find and replace.
Set the “Find” value to %20 and the “Replace” value to a single space (" ").
This will ensure that the file name appears clean and professional when attached to the email.
I’ve attached some example screenshots to demonstrate how to set this up and what the output will look like
I faced a similar issue before. Using the :find and replace option worked perfectly for me. You can replace %20 with an actual space (" ") in the file name, and it should display cleanly in the email.
I have the bid pdf save to the database so then I can select the pdf file from the database when writing an email on the website. I tried the Find and Replace method, but it did not work with how I have it set up
To assist you better, could you please provide more details regarding your current setup? Screenshots and screencasts show how you’ve set up the workflow. This will help us understand the issue more clearly and suggest a suitable workaround.
In the meantime, one solution is to use the Find and Replace method in your workflow to replace %20 with a space before saving the PDF file to the database. Let us know if this aligns with your use case or if you’re encountering challenges implementing it.
I wanted to follow up and see if you’ve had a chance to go over the steps we shared earlier. If the issue persists or if there’s anything else you’d like help with, please don’t hesitate to let us know.
We’re always here to assist and would be happy to help address any challenges you might be facing.
Here is my workflow: After the user fills out the information for their bid, they click create bid. That then creates the pdf (first picture). This is how I have the Conjure PDF action set up. Then, after it’s created, it takes you to a page (second picture) that shows a repeating group list of the bid(s) the user has created for this job (if more than one is ever needed, i.e. job changes etc). Then when the user chooses to send any bids they select from the list it sends the pdf file to the customer’s email. When I receive it in my test emails, it has the %20 in the title. I tried what you suggested (as you can see in the Conjure workflow), but it did not work. In my RG list (second picture), if I click the “view” button to open the pdf in a new tab, download it, then upload it in an email to send, then there is no %20 in the name. Only if I send it in this method I have set up. Please let me know any further suggestions or if I need to redo my system/workflow. Thank you
Thank you so much for providing additional details and sharing the screenshots!
The problem with the %20 in the filename typically arises because when you attach the file to an email using the file’s URL (which seems to be the case here), Bubble sends it as a URL rather than directly as a file attachment with a clean name. This encoding is standard for URLs, where spaces are replaced with %20.
To better assist you, could you please share the exact workflow setup you’re using for sending the email? Specifically, the steps where the file is attached and sent.
I wanted to follow up and see if you’ve had a chance to go over the steps we shared earlier. If the issue persists or if there’s anything else you’d like help with, please don’t hesitate to let us know.
We’re always here to assist and would be happy to help address any challenges you might be facing.
When the user wants to send the email, I have it trigger the “send email” action in the first picture. I have it attach whatever bids the user selects which I have pulled from a custom state (bid selection). The state stores each selected Bid from the database. The “Bid” in the data base is just the PDF file and whatever Job and Customer it’s for. Please let me know if there’s anything I should change or if you need anymore info. Thank you
To resolve this, you can update your workflow directly in the “Send email” action by applying :find and replace to the file name where it’s attached. This way, you don’t need to re-upload the file or take extra steps.
Here’s how you can adjust the workflow:
Go to the Attachment field in your “Send email” action.
Apply :find and replace to the file URL:
Find: (%20)
Replace: Use an underscore (_) or dash (space) to clean up the file name.
This ensures the file name is formatted properly before sending and eliminates the “%20” issue.
Let me know if this works for you or if you need further assistance. I’ll be happy to guide you through any additional steps!
Thank you for your kind words! I’m so glad everything is running smoothly now.
If you ever need assistance or have more questions, feel free to reach out anytime—it’s always a pleasure to help!
If you’re enjoying our plugins, we’d love for you to leave a quick review. Simply head to the Plugins tab in the Bubble editor, search for the plugin, and rate it with the stars it deserves.