0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

🐛 Allow .zip file upload for file import (#7278)

closes #7277

Adds `.zip` to `extensions` and `application/zip` to `contentTypes` in config, specificly for uploads to `db`, to allow .zip-file file uploads from labs.
This commit is contained in:
Aileen Nowak 2016-08-29 09:19:49 +02:00 committed by Katharina Irrgang
parent 1bc1f165f1
commit 587337aab3

View file

@ -277,8 +277,8 @@ ConfigManager.prototype.set = function (config) {
contentTypes: ['image/jpeg', 'image/png', 'image/gif', 'image/svg+xml']
},
db: {
extensions: ['.json'],
contentTypes: ['application/octet-stream', 'application/json']
extensions: ['.json', '.zip'],
contentTypes: ['application/octet-stream', 'application/json', 'application/zip']
},
themes: {
extensions: ['.zip'],