openblocks-dev / openblocks

🔥 🔥 🔥 The Open Source Retool Alternative
https://cloud.openblocks.dev
GNU Affero General Public License v3.0
5.8k stars 349 forks source link

File Upload widget -> How to send the uploaded file directly to destination? #389

Open jayv-tech opened 1 year ago

jayv-tech commented 1 year ago

Hi! I am new to OpenBlocks. I am trying to figure out how to get the uploaded file from the users.

For example, I have a Text Input and File Upload widget and a button to send the data through API to my n8n instance. Once the user fills in the input, uploads a file, and clicks on the button to submit, I want the page to send the file to my n8n instance. Or to Airtable or to Baserow directly through their API. I can only get the Base64 data from the uploaded file and not the actual file itself.

I am trying to upload .pdf and .docx files through the app. Can anyone please guide me on how to go about doing this? Attaching a screenshot for reference:

image

I don't want the 'String' data here. I want the actual PDF file that a user uploads.

Also, is there a way to create a direct link to the uploaded file if that's impossible?