MerginMaps / mobile

Mergin Maps mobile app 📲 Open QGIS projects and manage vector data on your phone, even offline 📶 (Android/iOS/Windows app)
https://merginmaps.com
GNU General Public License v2.0
299 stars 65 forks source link

Unable to attach or view photos in Windows app #3270

Open raherin opened 7 months ago

raherin commented 7 months ago

Photos do not appear to be working in the Windows implementation of the app. To reproduce the issue:

  1. Use the QGIS plugin to create a new basic project and synchronise it to the server

  2. On your pc/laptop, move a photo to the project directory

  3. In QGIS, set the survey layer to 'editable' and add a new point

  4. Attach the photo in the project directory using the attachment widget in the survey form Screenshot 2024-04-05 135315

  5. Save and sync changes in the plugin

  6. Open the windows version of the Mergin Maps app

  7. Download the project and open it

  8. Click on the point you created, the photo will not be visible, the terminal will show the following error message: qrc:/com.merginmaps/imports/MMInput/editor/inputexternalresource.qml:120:5: QML QQuickImage*: Cannot open: file://c/Users/raahe/AppData/Roaming/Lutra Consulting/Input/INPUT/projects/mm_windows_photo_test/IMG_20231127_084655.jpg Screenshot 2024-04-05 135528

  9. In the Windows app, create a new point and attach a photo, the app will give the following error: "2024-04-05T13:00:51.940Z Select image: Failed to copy image file to C:/Users/raahe/AppData/Roaming/Lutra Consulting/Input/INPUT/projects/mm_windows_photo_test/IMG_20231127_101343.jpg\n" qrc:/com.merginmaps/imports/MMInput/editor/inputexternalresource.qml:120:5: QML QQuickImage*: Cannot open: file://c/Users/raahe/AppData/Roaming/Lutra Consulting/Input/INPUT/projects/mm_windows_photo_test//IMG_20231127_101343.jpg Screenshot 2024-04-05 140119