Closed raherin closed 1 week ago
@raherin can you share the project with us please?
@tomasMizera you can find the project here, I have given you 'Owner' rights to add more users if needed.
@tomasMizera @raherin , can you please share this project with me? I want to verify the fix. Thanks
@tomasMizera @raherin , can you please share this project with me? I want to verify the fix. Thanks
Hi @jozef-budac, I just shared this project with you. You can find it here.
I have been able to recreate an issue reported by at least one other user where multiple photo naming expressions are used in 'Project>Properties', only the first listed expression will be applied in the app.
I have a project with two point survey layers. The first survey layer has two photo attachment fields and the second layer has one photo attachment field. In my project directory, I have a 'photos/' folder to store photo attachments. In the project properties, I have a photo naming expression set for each attachment field, the same expression is used for each field:
'photos/'||@mergin_username||'-'||@layer_name||to_string("count")||'_'||format_date("date",'yyyy-MM-dd_Thh.mm.ss')
In the app, I add a feature to![Screenshot_20240509_163349](https://github.com/MerginMaps/mobile/assets/26321345/8ee68217-af2e-498a-a375-78c8a7711961)
Survey
layer and add two photo attachmentsI then add a feature to![Screenshot_20240509_163428](https://github.com/MerginMaps/mobile/assets/26321345/050aaefb-3a3d-4b39-90e8-ad007a769928)
survey2
layer and add one photo attachmentI then synchronise the changes in the mobile app and go back to sync in QGIS, however I can see that the photo naming expression was only applied to one of the three photos I just recorded in the app
If I go to the project directory, I can see that two of the photos did not get saved to the /photos folder and the photo in the
Survey.photo
field is in the /photos folder with the correctly applied custom namephotos/