Change default path for picture upload in LWC

I’m struggling a bit with the settings to make picture/document uploads possible in LWC. I do not want to use the default /media/upload/ProjectName/LayerName/Fieldname/ setting.

So i changed the widget type in QGIS to attachment, set as default path media/MyDesiredFolder/ and set “Store path as” → Relative to Project Path

Note: I tried varying options to write the “Default Path”

  • /media/bauamt/fotos
  • /media/bauamt/fotos/
  • media/bauamt/fotos
  • media/bauamt/fotos/

It still uploads pictures into /media/upload/ProjectName/LayerName/Fieldname/

Is this a bug on 3.9.2 or am i doing something wrong?

2 fixes has been done and backported:

We released a new 3.9 with these fixes