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!