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

Add support for zip import #4626

Merged
merged 1 commit into from
Dec 11, 2014
Merged

Add support for zip import #4626

merged 1 commit into from
Dec 11, 2014

Conversation

ErisDS
Copy link
Member

@ErisDS ErisDS commented Dec 10, 2014

This PR adds support for uploading a zip file containing a JSON file, as outlined in #4607
It also adds consistent extension and type checking to both the db and upload API endpoints

The next step is to refactor the importer quite significantly, so I'm stopping here with what is a reasonably self-contained piece of work. The refactor should make the code more testable as well :)

fixes #4607

  • moves file checks from db and upload API endpoints to api utils
  • adds code to accept and then extract a zip and pull out a JSON file
  • zip handling requires a lot of dependencies - this needs a good refactor

fixes TryGhost#4607

- moves file checks from db and upload API endpoints to api utils
- adds code to accept and then extract a zip and pull out a JSON file
- zip handling requires a lot of dependencies - this needs a good refactor
@delgermurun
Copy link
Contributor

👍 works for me.

sebgie added a commit that referenced this pull request Dec 11, 2014
@sebgie sebgie merged commit f531ef1 into TryGhost:master Dec 11, 2014
@ErisDS ErisDS deleted the issue-4607 branch December 14, 2014 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ghost Importer: accept and handle zip files
3 participants