Skip to content

Commit 48042cb

Browse files
committed
File handling to media management rewrite
1 parent 380539e commit 48042cb

28 files changed

+537
-132
lines changed

docs/ff-concepts/file-handling/clear-delete-media.md

Lines changed: 0 additions & 125 deletions
This file was deleted.

docs/ff-concepts/file-handling/upload-save-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Using this action, you can upload any type of file to your app (e.g., PDF, MP3,
3232
**Tip**: To let anyone download the uploaded media, you can enable the 'Public bucket.'
3333

3434
<p></p>
35-
![img.png](imgs/img.png)
35+
3636
<p></p>
3737

3838
3. Apply additional [**security rules**](https://supabase.com/docs/guides/storage/quickstart#add-security-rules) which determine who can access the bucket. **Tip**: If you are uploading to a folder structure like this '*pics/uploads*,' here is how you can add a policy that allows only authenticated users to upload their profile picture.

docs/ff-concepts/file-handling/upload-save-media.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This action allows you to easily upload a photo or video to your app. You have t
5757
**Tip**: To let anyone download the uploaded media, you can enable the 'Public bucket.'
5858

5959
<p></p>
60-
![img.png](imgs/img.png)
60+
6161
<p></p>
6262

6363
3. Apply additional [**security rules**](https://supabase.com/docs/guides/storage/quickstart#add-security-rules) which determine who can access the bucket. **Tip**: If you are uploading to a folder structure like this '*pics/uploads*,' here is how you can add a policy that allows only authenticated users to upload their profile picture.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Media Management",
3+
"position": 8
4+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
slug: /concepts/media-management/clear-delete-media
3+
title: Clear or Delete Media
4+
description: Learn how to add clear and delete file actions into your FlutterFlow app.
5+
sidebar_position: 4
6+
tags: [Media, Clear Delete Data]
7+
keywords: [Media, Clear Data, Delete Data, Firebase Storage, Supabase Storage]
8+
---
9+
10+
# Clear or Delete Media
11+
12+
The **Clear** and **Delete** **Media** actions provide essential functionalities for managing media files efficiently.
13+
14+
## Clear Uploaded Data [Action]
15+
16+
When users upload media files, these files are first stored in a local state variable, i.e., *Uploaded File URL* for immediate access and display. This action is helpful when you want to offer users a straightforward method to remove any uploaded media, such as images or recordings.
17+
18+
:::info
19+
20+
For this action to work, the [**Upload or Save Media**](uploading-files.md#upload-or-save-media-action) action must already be added to the workflow.
21+
22+
:::
23+
24+
## Delete Data [Action]
25+
26+
The **Delete Data** action permanently removes uploaded media—such as images, videos, and PDF files—from external storage platforms like [Firebase Storage](https://firebase.google.com/docs/storage) and [Supabase Storage](https://supabase.com/storage).
27+
28+
Inside the **URL** section, provide a valid media URL. This must be either the direct **Uploaded File URL** or a variable that holds the URL.
29+
30+
:::tip
31+
32+
Always prompt users for confirmation before deleting media files to prevent accidental loss of data.
33+
34+
:::

0 commit comments

Comments
 (0)