Here's a fix that works:
Open /components/com_facileforms/facileforms.process.php
Look for this:
if ($timestamp) $path .= '.'.date('YmdHis');
And change it to this:
if ($timestamp) $path .= date('YmdHis').'.'.$userfile_name;
...a few lines down do it again.
Then go farther down (for the Flash uploads)and find this:
if ($row->flag1) $path .= '.'.date('YmdHis');
And change it to this:
if ($row->flag1) $path .= date('YmdHis').'.'.$userfile_name;
...a few lines down do it again.
In the end you have this:
Standard Upload
// Changed so that the timestamp goes before the extension
// if ($timestamp) $path .= '.'.date('YmdHis');
// This is the new line of code
if ($timestamp) $path .= date('YmdHis').'.'.$userfile_name;
if (file_exists($path)) {
$rnd = md5( mt_rand(0, mt_getrandmax()) );
$path = $baseDir.'/'.$rnd.'_'.$userfile_name;
// Changed so that the timestamp goes before the extension
// if ($timestamp) $path .= '.'.date('YmdHis');
// This is the new line of code
if ($timestamp) $path .= date('YmdHis').'.'.$userfile_name;
For Flash Uploader:
// Changed Old Code - timestamp after extension
// if ($row->flag1) $path .= '.'.date('YmdHis');
// New line of code below
if ($row->flag1) $path .= date('YmdHis').'.'.$userfile_name;
if (file_exists($path)) {
$rnd = md5( mt_rand(0, mt_getrandmax()) );
$path = $baseDir.'/'.$rnd.'_'.$userfile_name;
// Changed Old code - timestamp after file extension
// if ($row->flag1) $path .= '.'.date('YmdHis');
// New line of code below
if ($row->flag1) $path .= date('YmdHis').'.'.$userfile_name;
This works in version 1.71
Just for convenience sake, I coded it so it names the file the original filename + timestamp + original filename. This way the files can be sorted as though they were never renamed.
Now I'm wondering how to preview uploaded images on the thank you page. Any ideas?