aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-12-26 19:34:15 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-01-05 21:01:24 +0900
commit3b88c2b537b6cb98dcd0f2066d39e426b5cc52da (patch)
treefddb6d657a9fff3263f07e9cd3ca471956d791a9 /lib/connection.h
parent241f7165816624da45fca58578885b17589ec1f7 (diff)
downloadlibquotient-3b88c2b537b6cb98dcd0f2066d39e426b5cc52da.tar.gz
libquotient-3b88c2b537b6cb98dcd0f2066d39e426b5cc52da.zip
Connection::upload*: autodetect content type if not supplied
Diffstat (limited to 'lib/connection.h')
-rw-r--r--lib/connection.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/connection.h b/lib/connection.h
index 9a94aad6..ff3e2028 100644
--- a/lib/connection.h
+++ b/lib/connection.h
@@ -402,10 +402,10 @@ namespace QMatrixClient
// QIODevice* should already be open
UploadContentJob* uploadContent(QIODevice* contentSource,
- const QString& filename = {},
- const QString& contentType = {}) const;
+ const QString& filename = {},
+ const QString& overrideContentType = {}) const;
UploadContentJob* uploadFile(const QString& fileName,
- const QString& contentType = {});
+ const QString& overrideContentType = {});
GetContentJob* getContent(const QString& mediaId) const;
GetContentJob* getContent(const QUrl& url) const;
// If localFilename is empty, a temporary file will be created