Passing uploaded file to another page

Actions & Logic

I'm looking to upload a file on a first page. Then once the upload is confirmed, I need the image to be processed into a second page.

It is possible to define a page state variable of type "Uploaded file".

However, that option does not exist for the app state.

As a result, it's not possible to store the file on the first page, and get hold of it on the second page.

What have you tried so far?

I have tried passing the file as a parameter from one page to the next. This seems to work, somehow, but it produces errors for large files. Most probably because the file content is actually fully loaded in the router. Indeed, the whole thing appears in the URL when on the web ! This is highly inefficient and some devices crash as a result.

Please note I need to keep the file in the app. Uploading it to storage and downloading it again on the next page is not an option. Not only is this highly inefficient for large files, but I need my app to be able to work offline.

Have any of you been able to find another way to pass a file from one page to another, or simply to store it in the app state somehow ?

Thanks for any help.

Did you check FlutterFlow's Documentation for this topic?
Yes
2