opengisch/qgis-document-management-system-plugin

Drag & Drop method store the filepath in the database

jpdupuy opened this issue · 5 comments

When you add a new document, the filepath is different when registered in the database
with the select file button, the path is not stored
image
image

When the drag & drop is used the path is stored
image
image

@jpdupuy thank you for the feedback!
Do you dropped the file in the document relation editor widget or directly in the document form on the attachment widget?

I just tried directly on the attachment widget and it does not take care of the default path when dropping a file.

I used both methods (see the 2 snapshots).
drag & drop : I get the full path
attachement : I get the relative path

Yes what I meant is if you drag&dropped the file into the document relation editor widget (coming from the plugin) or into the attachment widget (coming from QGIS).
It seems the bug is in QGIS itself.

@jpdupuy fix submitted in the QGIS project: qgis/QGIS#44798

@jpdupuy the fix was integrated into QGIS and you should be able to test it in the nightly builds. It will also be backported to the next point release of 3.16 and 3.20.