Skip to content

Commit 9741aa8

Browse files
Update docs/ff-concepts/file-handling/displaying-media.md
Co-authored-by: Pooja Bhaumik <[email protected]>
1 parent 931d355 commit 9741aa8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/ff-concepts/file-handling/displaying-media.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ In FlutterFlow, the **PdfViewer** widget enables you to display PDF files within
217217

218218
## Web Access for PDFs and Other Files
219219

220-
Some types of files require additional configuration to be accessed on the web. In particular, the PDF Viewer requires network files (such as uploaded PDFs) to allow what is called Cross-Origin Resource Sharing (CORS). Without diving too deep into that, the important part is that if you want users to be able to upload and view PDFs using Firebase Storage, follow the instructions below:
220+
Some types of files require additional configuration to be accessed on the web. In particular, the PDF Viewer requires network-hosted files (such as uploaded PDFs) to allow Cross-Origin Resource Sharing (CORS). For a deeper understanding of Cross-Origin Resource Sharing (CORS), you can refer to this guide.
221+
222+
The key takeaway is that to allow users to upload and view PDFs using Firebase Storage, follow the steps below.
221223

222224

223225
You'll need to run a few commands to enable CORS for your Firebase project. No programming experience is required, but if you're comfortable with Firebase, you can refer to the official guide here: [Firebase CORS Configuration](https://firebase.google.com/docs/storage/web/download-files#cors_configuration).

0 commit comments

Comments
 (0)