I cannot figure out how to work with image uploads. I tried following the FAQ at https://www.chronoengine.com/faqs/60-cfv4/cfv4-working-with-the-database/2666-how-can-i-edit-the-record-for-an-%3Cspan%20class= but couldn't get it to work.
I have an input form (Form1) on which the user may include an image in a file upload event. I understand that the image name, with a date prefix, is stored in my table and that the image itself is stored in the components/com_chronoforms5/chronoforms/uploads/Form1/ folder. That part works fine.
I have a second form (Form2) with which the user can edit his record. It includes a file upload event which is meant to allow the user to upload a different image to replace the existing one. While I can load a thumbnail of the existing image as a preview, I can't figure out now to allow the user to upload a replacement image, delete an image, or not overwrite the image with a blank entry if nothing is included in the file upload field.
The FAQ says to enable the Ghost box in the File Upload - I did that and a blank image entry still overwrites the existing image name.
I also don't understand how to "Add a 'delete_checkbox' element..." How do I set that up? Is that just a checkbox with additional code?
Can anyone tell me how to accomplish this?
JM
I have an input form (Form1) on which the user may include an image in a file upload event. I understand that the image name, with a date prefix, is stored in my table and that the image itself is stored in the components/com_chronoforms5/chronoforms/uploads/Form1/ folder. That part works fine.
I have a second form (Form2) with which the user can edit his record. It includes a file upload event which is meant to allow the user to upload a different image to replace the existing one. While I can load a thumbnail of the existing image as a preview, I can't figure out now to allow the user to upload a replacement image, delete an image, or not overwrite the image with a blank entry if nothing is included in the file upload field.
The FAQ says to enable the Ghost box in the File Upload - I did that and a blank image entry still overwrites the existing image name.
I also don't understand how to "Add a 'delete_checkbox' element..." How do I set that up? Is that just a checkbox with additional code?
Can anyone tell me how to accomplish this?
JM