mobile icon indicating copy to clipboard operation
mobile copied to clipboard

Custom folder for storing photos doesn't work for empty folders

Open jozef-budac opened this issue 4 years ago • 3 comments

When I have project with custom folder for storing photos in QGIS, and this folder is empty, it is not synchronized to mergin, and also to INPUT. When creating a photo feature in INPUT, it shows and error "Cannot copy a photo to working directory"

We should synchronize the empty directory, or INPUT should be able to create a directory in case it is needed. For testing you can use project input-testing/tc10_custom_photo_directory

Here is configuration of the photo field in the feature

Screenshot at 2021-08-26 09-51-37

jozef-budac avatar Aug 26 '21 07:08 jozef-budac

This doesn't work out for me. Have been trying to create a empty directory 'photos'. It will be created at local but not in mergin.

acgtdev avatar Feb 25 '22 14:02 acgtdev

In this particular case the problem is in incorrect configuration of the attachment widget. Expression should be set using data-defined override, not entered directly in the field.

alexbruy avatar May 25 '22 13:05 alexbruy

is mergin plugin in QGIS reporting the warning?

PeterPetrik avatar Jun 06 '22 11:06 PeterPetrik

@jozef-budac @PatrikMizera can you guys try to reproduce this issue? We could not reproduce it. It seems that it is fixed now

tomasMizera avatar Sep 12 '23 09:09 tomasMizera

@tomasMizera With @iiLubos patch, this issue is solved

jozef-budac avatar Sep 13 '23 08:09 jozef-budac