summary refs log tree commit diff
path: root/src/TextInputWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/TextInputWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp
index 283616fc..ce0c7cb8 100644
--- a/src/TextInputWidget.cpp
+++ b/src/TextInputWidget.cpp
@@ -639,7 +639,7 @@ TextInputWidget::openFileSelection()
 
         QSharedPointer<QFile> file{new QFile{fileName, this}};
 
-        emit uploadMedia(file, format, fileName, input_->related);
+        emit uploadMedia(file, format, QFileInfo(fileName).fileName(), input_->related);
         input_->related = {};
         input_->closeReply();