mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Quick file type amend
- adding .jpeg spelling to allowed extensions, #705 will fix this properly
This commit is contained in:
parent
00b60a7a74
commit
658a21bcf8
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ adminControllers = {
|
|||
}
|
||||
|
||||
// TODO: is it better to use file type eg. image/png?
|
||||
if (ext === ".jpg" || ext === ".png" || ext === ".gif") {
|
||||
if (ext === ".jpg" || ext === ".jpeg" || ext === ".png" || ext === ".gif") {
|
||||
getUniqueFileName(dir, basename, ext, null, function (filename) {
|
||||
renameFile(filename);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue