We're using Gravity Forms to collect member-signup information for a directory site, including user-uploaded photos, but have run in to a problem with images disappearing when we edit entries.
Everything works as expected on the front-end. The images are uploaded properly and associated with the correct listing. We can view the entry via Form > Entries > Entry Detail and see the image. However, if we edit the entry, the image disappears. It doesn't matter what is changed, or if anything is changed at all - if the edit button is clicked, the image disappears. It happens consistently on every edit of every entry in every form. The image is the only data that is lost - everything else is maintained, and the image is still physically present on the server.
I used the SQL Monitor plugin to trace the database queries being run when an entry is updated, and found two delete queries that I believe are responsible. I've pastebinned the results to preserve the formatting, they can be found here: http://pastebin.com/zFjLecP4. For reference, the image's field_number is 52.
I can't figure out why editing an entry should cause an unchanged record to be deleted. The expected behavior would be an update if the image had changed, but I would assume that if no change was made to the image (and none has been, I've run through this several dozen times) then the record should be left untouched. In particular, I can't figure out why only one record would be affected, and why it should be the image. I've checked the database, and the record is definitely deleted on edit.
I've done the usual troubleshooting steps, disabled other plugins, created a duplicate of the form to test on, created an entirely new form to test on, tried both types of upload fields, and it consistently returns to the same result: No matter what form or field is used, editing the entry deletes the image's record. I've run out of ideas, so I'm hopeful someone with more experience with the plugin can shed some light on the situation and offer a solution.
---
Justin Ryan @ DuckDuckBlue,
for Kelly Williams