diff --git a/docs/ff-concepts/file-handling/clear-delete-media.md b/docs/ff-concepts/file-handling/clear-delete-media.md index 81c87617..15438d4e 100644 --- a/docs/ff-concepts/file-handling/clear-delete-media.md +++ b/docs/ff-concepts/file-handling/clear-delete-media.md @@ -1,7 +1,7 @@ --- title: Clear or Delete Media slug: /concepts/file-handling/clear-delete-media -sidebar_position: 6 +sidebar_position: 7 tags: [Media, Action] keywords: [Media, Clear Data, Delete Data Firebase Storage, Supabase Storage] --- diff --git a/docs/ff-concepts/file-handling/download-file.md b/docs/ff-concepts/file-handling/download-file.md new file mode 100644 index 00000000..bf8d1128 --- /dev/null +++ b/docs/ff-concepts/file-handling/download-file.md @@ -0,0 +1,56 @@ +--- +title: Download File +slug: /concepts/file-handling/download-file +sidebar_position: 6 +tags: [Media, Download Data, File Management] +keywords: [Media, Download Data, Firebase Storage, Supabase Storage] +description: Learn how to add download file action into your FlutterFlow app. +--- + +# Download File + +The **Download File** action allows you to enable users to download or save files locally on their devices. + +
+ +
+

+ +:::tip[File Download Location] +- **Windows, macOS, Linux, and Web**: Files are saved in the **Downloads** folder by default. +- **iOS**: Files are downloaded in the **Application Documents Directory**. +- **Android**: Files are saved in the application's directory at `Android/data/your.package.name/files/your_file.extension`. + +::: + +## Add Download File [Action] + +To add a download file action, select the **Widget** (e.g., button or any interactive widget) where you want users to initiate the file download and set the **Source** to one of the following. + +- **From URL**: Use this option for downloading files that are accessible through a direct link and specify the URL of the file that should be downloaded. +- **From File (Bytes)**: Use this option when the file is uploaded to the device using the [Local Upload (Widget State)](upload-data.md#local-upload-widget-state). You can access the file via ***Widget State > Uploaded Local File***. + +Optionally, you can specify a **Filename** to be used when the file is downloaded. + +![file-download-action](imgs/file-download-action.avif) \ No newline at end of file diff --git a/docs/ff-concepts/file-handling/imgs/file-download-action.avif b/docs/ff-concepts/file-handling/imgs/file-download-action.avif new file mode 100644 index 00000000..60d4da43 Binary files /dev/null and b/docs/ff-concepts/file-handling/imgs/file-download-action.avif differ