[How to name a photo according to the field we want at QFIELD? For example, I have a photo code field that contains the code “J0001” onwards, because every resulting image file name in qfield seems to be automatically named using the date it was taken]
Expected behavior
[I want the name of the photo after export according to the field without changing one by one, how do I do it? I think this uses a coding system. I’m not very good at it]
Desktop (please complete the following information)
OS: [e.g. Windows]
QGIS Version [e.g. 3.22.0]
QFieldSync Version [e.g.4.0.0]
Mobile (please complete the following information)
Device: [e.g. Xiaomi Mi 8]
OS: [e.g. Android 10]
QField version: [3.2.2]
Additional information
Problem started happening recently, didn’t happen in an older version of QField: [Yes]
Problem can be reliably reproduced, doesn’t happen randomly: [Yes]
Problem happens with all files and projects, not only some files or projects: [No]
Imported from GitHub discussion by @Bagaszed on 2024-05-19T16:57:01Z
When you have a field that allows taking pictures using the ‘Attachment’ widget, you can configure the attachments in the properties of the layer (QFIELD tab).
From there, you can use an expression to name your pictures. For example, you can use the field that contain your “codes”.
When you have a field that allows taking pictures using the ‘Attachment’ widget, you can configure the attachments in the properties of the layer (QFIELD tab).
From there, you can use an expression to name your pictures. For example, you can use the field that contain your “codes”.
I am trouble shooting a similar naming issue. Pics are default named and not by the expression. I noticed however, that if I created the feature containing the pic record (i.e. saved it), then selected it and edited it to add a pic, the renaming worked as coded. Anyone else?
I see here that someone else mentions saving first…
Imported from GitHub comment by @roydenyates on 2024-06-07T17:51:06Z
I’ve tested photo naming using the sample bees project with both native and non native camera on Android and couldn’t replicate this issue. It’ll likely take someone to share a small project that shows the issue to investigate this further.
Imported from GitHub comment by @nirvn on 2024-06-08T12:40:32Z