Storing a local media file and uploading it to Firebase

Hello beginner here,

I want users to choose an image or a video and then i want them to click an upload button (just like creating a post). Though before uploading they should be able to see what they choose to upload. I assume that means holding media locally?

Am i suppose to give 2 separate actions to upload button, one for creating a document and one for upload media to Firebase?

I cant seem to find what to choose when setting the field for firebase and there is only uploaded file option under widget state.

Hope to find a complete solution for this.

2 replies