Hi everyone,
I'm building a form in FlutterFlow with the following fields:
Name (TextField)
Employee ID (TextField)
Message (TextField)
Request Type (Dropdown)
File Upload (FileUploadButton)
I've successfully created the form layout and connected it to my Firebase collection ("Kontaktanfragen"). However, I'm having trouble with the file upload functionality.
Here's what I want to achieve:
When a user clicks the "FileUploadButton", they should be able to select one or more files from their device (PDFs, PNGs, etc.).
These files should be stored locally on the device temporarily.
The names of the selected files should be displayed in a list or text area below the "FileUploadButton" (e.g., "file1.pdf, file2.png").
Only when the user clicks the "Submit" button should the form data (including the locally stored files) be uploaded to Firebase. The files should be uploaded to Firebase Storage, and the file URLs should be stored in the "Kontaktanfragen" collection along with the other form data.
Any help or guidance on this would be greatly appreciated!
Thanks in advance, Leon Goldschmidt