Quote Originally Posted by decartwr View Post
I haven't had time to thoroughly investigate this (and it's almost midnight my time, so fatigue is working against me here)...BUT, it does appear that the uploads.php code assumes file extensions will always be lowercase, which is bogus.

See if these changes help:

Around line 229 of uploads.php, find a line like this:

Code:
$file_extension = strtolower( substr( strrchr( $fileName, '.' ), 1) );
and change it to be like this:

Code:
$file_extension = strtolower( $fext = substr( strrchr( $fileName, '.' ), 1) );
and then around line 249 find:

Code:
$fs_path = DIR_FS_UPLOADS . $index . '.' . $file_extension;
and change it to:

Code:
$fs_path = DIR_FS_UPLOADS . $index . '.' . $fext;
and then (optionally, only if you want to preserve the case of the extension when you download the file) around 256 find:

Code:
$nfile = 'zc_order' . $oid . '_' . $index . '.' . $file_extension;
and change it to:

Code:
$nfile = 'zc_order' . $oid . '_' . $index . '.' . $fext;
I have NOT tested these mods, but try them and post results here (being on opposite sides of the world is a challenge, time-wise).
Thanks for this! i was looking for this solution a long time, wondering why it is not implemented in the newer version by default. you may want to link to this support thread on the add-on page as well.

Another suggestion would be (perhaps a s a separate plugin) to turn the file attribute data shown on the orders.php to a link so that the file can be directly downloaded on the order page.

Thanks for the great mod!