Image_file attribute html mode will clear the current data.
Permalink
concrete5 8.4.4 has a problem;
When you use image_file attribute with html input mote, you will find that updating attributes will clear the images.
This repository tentatively fix this problem
Two elements for form.php, and createAttributeValueFromRequest in controller.php will handle these elements.
+ hidden input which stores the current image's id
+ checkbox which determines to keep the current image or clear it
The files are available here.
https://github.com/ounziw/concrete5-image_file...
When you use image_file attribute with html input mote, you will find that updating attributes will clear the images.
This repository tentatively fix this problem
Two elements for form.php, and createAttributeValueFromRequest in controller.php will handle these elements.
+ hidden input which stores the current image's id
+ checkbox which determines to keep the current image or clear it
The files are available here.
https://github.com/ounziw/concrete5-image_file...