Rename File Prior to Upload

I am using the standard drag-drop file upload element in a form for the end-user to upload with. This goes into a Make integration which eventually lands with a new record in Airtable including the files.

I have discovered a bug where any files with a URL upload path (at least using the WeWeb CDN) that contain a “#” causes Airtable to delete the file after downloading it into a record. I have isolated the issue to the URL and not the filename as I removed the “#” in my Make routine before reaching Airtable and the problem persists.

I’m looking to make a workaround to simply remove any “#” characters from files uploaded, but I need to do that on WeWeb before it gets uploaded to the CDN. The standard workflow doesn’t allow you to intercept the files prior to upload when using the file element as it’s bound to File elements used.

How can I rename these files prior to upload?

Hi @EvilHIdden :wave:

I didn’t check if it works but perhaps adding a return value action prior to the file upload to change the name of the file uploaded:

(You might need a regex to get rid of the #)

And then binding the upload file action to the result from the previous action:

Does that help?