I think I’ve found a possible bug when uploading files via a template form (both channel and Freeform Pro forms). When a file is uploaded with the same name as an existing file a number is appended to the end of the file name.
This is now a particular problem on one specific site where photos are added from iPhones which always uses the filename image.jpg. There seems to be a limit to the number of duplicates as it was working fine, but now the error message “A problem was encountered while attempting to move the uploaded file to the final destination” is displayed. Looking at the file table in the database there’s now lots of versions of image.jpg with numbers appended (https://www.dropbox.com/s/rcjj55qo676qnjt/Screen%20Shot%202014-04-13%20at%2021.04.32.png), so I guess the limit of the filename length has been reached.
Has anyone else encountered this issue? Is there a workaround for it, maybe by being able to specify a filename with a timestamp or something?