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:
parent
1bc1f165f1
commit
587337aab3
1 changed files with 2 additions and 2 deletions
|
@ -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'],
|
||||
|
|
Loading…
Add table
Reference in a new issue