Commit 2e3ee053 authored by armin's avatar armin

ios image picker fixes

parent 1a8cb167
......@@ -25,7 +25,7 @@
FileUploader::FileUploader( QObject *parent, RocketChatServerData *pServer, const QUrl &pUri, const QString &pChannelId ): QObject( parent ),
mUri( pUri ), mChannelId( pChannelId ), mServer( pServer )
{
#ifdef Q_OS_ANDROID
#if defined ( Q_OS_ANDROID) || defined(Q_OS_IOS)
auto file = QSharedPointer<QFile>::create( pUri.path() );
#else
auto file = QSharedPointer<QFile>::create( pUri.toLocalFile() );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment