How can a record edit remove an uploaded image?

JeffP 26 Jul, 2012
I have a form that allows members to enter some details as well as optionally upload an image. This is all stored in a database and the file uploaded to a specific folder.

The form works correctly in that it uploads the image, and when edited displays the previously uploaded image as well as allowing members to upload a replacement image, but if no new image is selected it also retains the original image.

But I can't now figure out how to allow the member to remove an uploaded file if they want.

Any ideas would be greatly appreciated.
GreyHead 26 Jul, 2012
Hi Jeff,

I think that you'd need to add a 'delete me' check box next to the displayed image and then use a Custom Code action to delete the file if it's checked.

Bob
JeffP 26 Jul, 2012
Thanks Bob. That's a good idea. Will give it a go.
This topic is locked and no more replies can be posted.