0
Fork 0
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:
Hannah Wolfe 2013-09-18 02:53:08 +01:00
parent 00b60a7a74
commit 658a21bcf8

View file

@ -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);
});