Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGhost import function validate file extension instead of its content #11657
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Issue Summary
When we export blog using ghost-cli
ghost export, we can name it using any filename and extension. But when we import it into the other ghost server using ghost-clighost import, if we use the file which is not a JSON extension (.json) the cli vaidation will thow an error.Expected
it shouldn't validate using file extension and using JSON (content) validation instead.
So any file name without .json but contain the JSON content should've worked as well.
To Reproduce
ghost export testimportfileghost import testimportfileTechnical details:
Debug Information:
OS: Ubuntu, v18.04.4 LTS
Node Version: v10.19.0
Ghost Version: 3.11.0
Ghost-CLI Version: 1.13.1
Environment: production
Command: 'ghost import bckfile'