Fourth "Send file" option for form file uploads "Send as string" for submissions that trigger a Webhook #27515
Thalahassi
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
What problem is your feature request going to solve? Please describe..
I want to use the "Webhook" form action to send the payload of a submitted form to an Azure database, where all form inputs will get processed and stored. The default settings of the file upload field only allows sending file uploads to the form as email attachment or as link to the file stored in my Wordpress directoy.
I don't want any formdata saved in my Wordpress directory at all and don't want to send the submitted form as email either, but directly via webhook to my database. When I receive an submitted form via webhook, the array only contains an "attached" instead of the file.

Describe the solution you'd like.
I'd like a fourth option in the file upload form field "Send file" dropdown "Send as string". Choosing this enables me to process form submissions via webhook without any need to store file uploads in my Wordpress directory or using any mails.
This option will convert the uploaded file into a base64 string, so it can be sent within the array of the payload as string.
Additionally, users who want to process submissions as mail can choose "Send as string" to insert the attachment with its shortcode as string into the mail body as well.
Describe alternatives you've considered.
I have already an own plugin for custom elementor form fields in usage and explore ways to create a custom form field or a custom action to process uploads without the need of storing them in my Wordpress directory or using mails. If someone can give me any directions or examples how to achieve this on my own (i never found any good search results when looking for "elementor form file upload as string/binary/base64" or similar queries), I'd be very grateful.
However, I think a built-in solution would benefit the overall functionality of the forms not relying too much on mailings and storing submissions in Wordpress itself.
Additional context
No response
Agreement
All reactions