Make a form that allows drag and drop of images in Base

Hello,

For one of the tables in my LibreOffice Base database, there is a field for images (my images will be in JPEG format).

I would like to make a form so that it is easy for the database user to add images to an entry when creating it. For instance, after entering the other information for the entry, the user could just drag and drop the desired image into a box, and the relative path to that image will be entered into the appropriate field. As this happens, I also hope the image will appear in the form, as a confirmation to the user that the image is now added.

I know there is a File Picker control, but don’t know how to use it. Could it be applied in this case?

When reviewing data in another form, I hope to be able to “flip” through the entries and have each image appear. The images would be retrieved based on the relative path in entry’s image field.

Can anyone help with this? Thank you very much.

Hi @penyuan,

I’m not sure if a File Picker control will give you a drag-and-drop interface for images, but I can imagine that such an interface would be helpful for various types of work.

As nobody has provided you an Answer yet, it’s possible that Based would need a new feature to support this type of user interaction. Please file an enhancement bug and provide as much information about this new drag-and-drop feature as possible. Don’t forget to mark your bug as an ‘enhancement’. The QA team will be happy to help you triage your feature request in the bugtracker.

Please post a link to any bugs you file in a comment below using the format “fdo#123456”.

Thanks!
{"cc_re__cc_re__cc_by_sa_3_0_le": ["pan>\n        </li>\n        </ul>\n      </nav>\n      <p class='powered-by-link'>Powered by <a href=\"https://www.discourse.org\">Discourse</a>, best viewed with JavaScript enabled</p>\n    </footer>\n    <div class=\"tdf-footer-legal\">\n  <hr>\n  <p>\n    <a href=\"https://www.libreoffice.org/imprint\" target=\"_blank\">Impressum (Legal Info)</a> |\n    <a href=\"https://www.libreoffice.org/privacy\" target=\"_blank\">Datenschutzerkl\u00e4rung (Privacy Policy)</a>\n    \u2002\n    Content on this site is licensed under a <a href=\"https://creativecommons.org/licenses/by-sa/3.0/legalcode\">Creative Commons Attribution Share Alike 3.0</a> license.\n    </p>\n</div>\n    \n  </body>\n  \n</html>\n"]}