Fix the MP4 type

This commit is contained in:
Daniel Walsh 2017-04-30 10:58:41 +01:00 committed by GitHub
parent 74c7dff971
commit 5050d9b16f

View File

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