hdoro / sanity-plugin-external-files

Work w/ media hosted in external vendors from inside a Sanity.io studio
44 stars 14 forks source link

Firebase DAM includes File URL with token? #4

Open KyleSmith0905 opened 2 years ago

KyleSmith0905 commented 2 years ago

I have Sanity on the client of an application, idk if that's suggested or bad.

However, the fileURL that is available as a property of Firebase-DAM has a token query parameter. I believe this query token parameter is used for firebase storage rules to authorize images. Therefore, when I allow read: if false in firebase storage, I still was able to view the image with the fileURL sent.

Could I have an option for excluding FileURL from the document, or could you guide me on where the "options" are so I could try to fix it (and submit a pull request if you would like).

KyleSmith0905 commented 2 years ago

Found out where the schema options are: https://github.com/hdoro/sanity-plugin-external-dam/blob/main/packages/core/src/components/Uploader/Uploader.tsx#L16 Here it is for future reference for myself and others.