When I upload a PDF file using my gravity form, it saves the file’s URL in {file:3} successfully. I am calling that shortcode inside a Notification email.
After the file is uploaded through a form submission, I need to pass that file’s URL through to another website so that my team can see the link to the file. So this is the URL I have so far:
<a href=“htt ps://demoURL .current-rms.com/attachments/new?member_id={memberidcode:14}&attachment_link_url=”{file:3}">Attach this COI to the Organization
An example redacted file name that we would be uploading:
RAW URL from {file:3}
https://demoURL com/index.php?gf-download=2024%2F07%2FREN-12097-signed_document-73.pdf&form-id=11&field-id=3&hash=6d5c782ecd7417e8a3f121595db1fb40a1bdef64c5483b9fcb452f6765b51a54
BAD/TRUNCATED URL result from HREF above:
https://demoURL.com/index.php?gf-download=2024/07/REN-12097-signed_document-710.pdf
When Gravity forms passes the file’s URL through inside the larger HREF URL, it doesn’t URL-escape it, so the next program down the line doesn’t get the entire URL. Specifically the notification cuts off everything after the “&” following .pdf… the last query string called “&hash=aodjflnljce” is the one that doesn’t make it through.
Is there a way to URL Escape the File’s URL so that it doesn’t lose the "&hash="without having to spend a ton of money on another special plugin?
I see folks posting stuff about code outside the Gforms interface, but I have no idea how to use those. Im open to it, but I need some detailed steps if y’all recommend that direction.
Thanks so much!