This is in continuation to my previous post found here.
http://formidablepro.com/help-desk/multiple-file-image-upload-issue/
I thought it was working fine but I encountered a small issue
Basically I find that if I click remove file then it de-attaches the image from wordpress backend. But, if i directly upload another image without clicking remove image, then it is not de-attaching the image.
Hence, would there be a solution something like this:
if the image has been uploaded, then dont show the upload image button next to it? Only if there is no attached image or if the user clicks remove image, the upload button becomes visible?
Thanks




September 16, 2011 at 10:37 am
Okay, it looks like an easy fix for that. There are two spots in FrmProEntryMeta.php like this (one of these was added in the linked post):
$frm_media_id[] = whatever
Change both of these to:
$frm_media_id[$field->id] =
So you're just inserting $field->id into the brackets.
September 16, 2011 at 8:05 pm
Perfect! Works exactly as required.
Thanks
You may close the topic.
Topic closed.