We have a problem with file uploads that get attached wrong to entries from time to time. By looking at the gravity forms log file, something in the time frame of saving entries seems particularly strange to us. Have a look:
=========================================================
2013-05-13 13:00:33 - DEBUG --> upload_files() - temp file info: Array
(
[uploaded_filename] => image.jpg
[temp_filename] => 2_input_12.jpg
)
2013-05-13 13:00:33 - DEBUG --> upload_files() - skipping field: Name(2 - name)
2013-05-13 13:00:33 - DEBUG --> upload_files() - skipping field: E-Mail(3 - email)
2013-05-13 13:03:58 - DEBUG --> Saving entry.
2013-05-13 13:03:58 - DEBUG --> Entry record created in the database. ID: 11319
2013-05-13 13:03:58 - DEBUG --> Saving entry fields.
2013-05-13 13:03:58 - DEBUG --> Saving field Anrede
2013-05-13 13:03:58 - DEBUG --> Saving field Organisation
2013-05-13 13:03:58 - DEBUG --> Saving field Name
2013-05-13 13:03:58 - DEBUG --> Saving field Vorname
2013-05-13 13:03:58 - DEBUG --> Saving field Straße
2013-05-13 13:03:58 - DEBUG --> Saving field Hausnummer
2013-05-13 13:03:58 - DEBUG --> Saving field Ort
2013-05-13 13:03:58 - DEBUG --> Saving field PLZ
2013-05-13 13:03:58 - DEBUG --> Saving field E-Mail
2013-05-13 13:03:58 - DEBUG --> Array
2013-05-13 13:03:58 - DEBUG --> Result from wp_mail(): 1
2013-05-13 13:04:23 - DEBUG --> Saving entry.
=========================================================
Especially the timestamps are somehow strange (Or maybe the logging isn't perfect in the way it logs?) . "Saving Entry" seems to have a delay. In fact, this log represents the creation of 2 entries for 2 different form ids. The first one is created at 13:00:33 and has an upload field attached, the second one is created around 13:03:58 and handles text field only.
Any idea?