From 5050d9b16f5dadc5694adb48915ad09f0ea406bf Mon Sep 17 00:00:00 2001 From: Daniel Walsh Date: Sun, 30 Apr 2017 10:58:41 +0100 Subject: [PATCH] Fix the MP4 type --- uploaders/customuploader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uploaders/customuploader.cpp b/uploaders/customuploader.cpp index c088d93..5312b58 100644 --- a/uploaders/customuploader.cpp +++ b/uploaders/customuploader.cpp @@ -19,12 +19,12 @@ void error(QString absFilePath, QString err) CustomUploader::CustomUploader(QString absFilePath) { - types.insert("PNG", "image/png"); // Is a list of supported formats, too + types.insert("PNG", "image/png"); // This is a list of supported formats, too types.insert("GIF", "image/gif"); types.insert("JPG", "image/jpeg"); types.insert("JPEG", "image/jpeg"); types.insert("WEBM", "video/webm"); - types.insert("WEBM", "video/mp4"); + types.insert("MP4", "video/mp4"); // Let's go QFile file(absFilePath); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) error(absFilePath, file.errorString());