sanity-plugin-external-files icon indicating copy to clipboard operation
sanity-plugin-external-files copied to clipboard

Firebase DAM includes File URL with token?

Open KyleSmith0905 opened this issue 3 years ago • 1 comments

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 avatar May 27 '22 19:05 KyleSmith0905

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.

KyleSmith0905 avatar May 27 '22 22:05 KyleSmith0905