A new form widget is now available. It is named "External resource" and it allows a more complete handling of attributes assigned to file paths storing. Here is a complete summary of the widget features:
For more information on configuration options, you can use the tool tips of the configuration dialog box.
The main aim of this new widget is to fix and improve the two existing 'File name' and 'Photo' widgets, and replace them with a single unified widget. For the moment, you can still use the old widgets but they will be deprecated and removed for QGIS 3.0. We recommend to switch your projects to use the new 'External Resource' widget now.
This feature was developed by: