You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ff-concepts/file-handling/uploading-files.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ You can upload media to a **Supabase bucket** at a specified location. After the
31
31
32
32
### Local Upload (Widget State)
33
33
34
-
This method initially stores your media on the device, making it accessible via **Widget State > Uploaded Local File**. You can preview, edit, or process the file before uploading it to a permanent storage.
34
+
This method initially stores your media on the device, making it accessible via **Widget State > Uploaded Local File**. You can preview, edit, or process the file before uploading it to a cloud storage.
@@ -151,14 +151,14 @@ Check out our YouTube video for a detailed explanation of the **Upload or Save M
151
151
152
152
You can also save the media file temporarily on the device before uploading it to cloud storage by setting the **Upload Type** to [**Local Upload**](#local-upload-widget-state). This saves the file in Bytes, allowing you to preview, edit, or process it before finalizing the upload.
153
153
154
-
Once the file is uploaded to the device, you can do various things with it:
154
+
Once the file is uploaded to the device, you can do the following:
155
155
156
-
-**Preview or Validate the Media**: Show the user an in-app preview before deciding whether to finalize or discard the upload.
156
+
-**Preview or Validate the Media**: Show the user an in-app preview before they decide whether to finalize or discard the upload.
157
157
158
158
-**Editing Before Submission**: In social media apps, users upload photos for posts or stories. The app temporarily saves the image on the device while users edit or apply filters, and then uploads the final image to cloud storage.
159
159
-**Perform Data Operations**: In document scanning apps, users capture images of documents, which are temporarily stored on the device. The app accesses the file bytes to apply OCR (Optical Character Recognition), enhance contrast, or convert the image to PDF before uploading the final processed file to cloud storage.
160
160
-**Offline Functionality**: Store the media locally and defer uploading until the user regains internet access.
161
-
-**Upload to Server**: When you want to store the file externally, you can then make an API call (e.g., multipart form data) to transfer the local file. Be sure to retrieve and save the resulting file URL if you plan to display it later.
161
+
-**Upload to Server**: When you want to store the file externally, you can then make an API call (e.g., multipart form data) to transfer the local file. Be sure to retrieve and save the resulting file URL in your database if you plan to display it later.
162
162
163
163
Here are some examples of uploading a file to a device and using it in different scenarios:
0 commit comments