-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createRemoteFileNode should parse out the query string from url #4460
Comments
You can check #2985 - both code and comments - I had similar problem, but went with different approach so I "workarounded" this issue and ultimately didn't fix this. |
Thanks @pieh I hadn't catch that PR. |
What's the problem? The file is being saved as .png which is what you want right? |
Humm... no it is not. As I mentioned the name of the file being saved is something like |
What is the extension and mediaType? |
In the File node |
|
Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help! |
Description
When using
createRemoteFileNode
to fetch images and there are query parameters in the url, the file gets saved with a wrong extension and media type.For example: to access Firebase assets one will use an url such as https://firebasestorage.googleapis.com/v0/b/[bucket name]/o/image.png?alt=media&token=[some token]
Steps to reproduce
Expected result
One should get a
someHash.png
file in cache with correct media typeActual result
File is named
someHash.png?alt=media&token=theToken
Environment
Comments
I could try and make a PR next week but I would like confirmation that this is indeed something we want.
Is there some things I need to be aware of or pay attention to?
The text was updated successfully, but these errors were encountered: