Skip to content
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

fix(gatsby-source-filesystem): Use new FileType methods to read file extension #28156

Merged
merged 1 commit into from
Nov 18, 2020

Conversation

pvdz
Copy link
Contributor

@pvdz pvdz commented Nov 18, 2020

This is a copy of #27559 because that branch got deleted. Copying desc verbatim;


Description

Uses fromFile(), fromBuffer() methods to infer filetype/extension from the file/buffer, if not specified.

This fixes an issue where createRemoteFileNode may fail on URLs without an extension in the path.

Documentation

  • N/A

Related Issues

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Nov 18, 2020
@pvdz pvdz added topic: source-plugins Relates to the Gatsby source plugins (e.g. -filesystem) and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Nov 18, 2020
@pvdz pvdz merged commit 616e9e3 into master Nov 18, 2020
@delete-merged-branch delete-merged-branch bot deleted the filetype branch November 18, 2020 14:22
@vladar vladar added this to To cherry-pick in V2 Release hotfixes via automation Nov 19, 2020
vladar pushed a commit that referenced this pull request Nov 19, 2020
vladar added a commit that referenced this pull request Nov 19, 2020
…extension (#28156) (#28178)

(cherry picked from commit 616e9e3)

Co-authored-by: Peter van der Zee <209817+pvdz@users.noreply.github.com>
@vladar vladar moved this from To cherry-pick to Backported in V2 Release hotfixes Nov 19, 2020
pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this pull request Apr 28, 2022
mwfrost pushed a commit to mwfrost/gatsby that referenced this pull request Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: source-plugins Relates to the Gatsby source plugins (e.g. -filesystem)
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

createRemoteFileNode crashes when url doesn't have an extension
1 participant