Get ready for BLACK FRIDAY shopping starting in

Forums

PHP

This topic is locked

psudo update problem

Posted 28 Mar 2008 18:39:17
1
has voted
28 Mar 2008 18:39:17 ross hananana posted:
Hello
Im referring to an extension from here that easily allows you to upload images, but ut doesnt work so well with the update record behavior..
Anyway i found a way around this by copying the record without the image field, hiding all the other fields apart from the image file with a update behavior and delete the old record so it looks like only the image has been updated

but there is a rather flaw, the delete record behavior kicks in when the update image button is clicked, so if the user goes to upload the new image and then decides "naw..i cant find the other pic" or what ever and closes the wee pop up window with the file upload he is left with the whole record deleted.

Can anybody show me the better road for this?


Reply to this topic