1
0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-29 22:01:49 +03:00
Commit Graph

5 Commits

Author SHA1 Message Date
Hannah Wolfe
6ff51ad44e Add support for zip import
fixes 

- 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
2014-12-10 20:21:06 +00:00
Fabian Becker
55293d0d1e Abstract the allowed file types out of API
closes 
- Moves contentType and extension check to config
2014-09-26 13:31:23 +00:00
Harry Wolff
66845def85 Moves storage module to use prototypes for inheritance and structure.
addresses 

- Moves storage modules to use prototypes and to create prototypes
that inherit from the base storage ctor.

- Makes storage/base conform to an all Promise interface.
2014-09-12 21:41:29 -04:00
Jason Williams
07ad400ee0 Replace the when promise library with bluebird.
Closes 
2014-08-23 17:15:40 +00:00
Sebastian Gierlinger
2957b0175e Move image upload to API
closes 
- added `/ghost/api/v0.1/uploads/` endpoint
- removed upload method from `controller/admin.js`
- moved removal of temporary files from storage to endpoint (needed to
account for failed uploads)
- changed and moved tests
- Oversight: I think that we use `.otherwise()` and `.catch()` a bit
too extensive and mask the real error objects. We probably need an
error handling strategy at some point in the future.
2014-07-15 12:40:14 +02:00