Custom Option - File Upload:
When uploading a file on a Custom Option of a Product it ends up at:
\media\custom_options\quote*
When you upload a file.jpg, it ends up being renamed into 123kjhkjhkjhdsk.jpg.
What I need:
I need it to be saved in Original Name.
What I have done so far:
Now, I was able to modify \lib\Varien\File\Uploader.php https://github.com/varinen/solvingmagento_1.7.0/blob/master/lib/Varien/File/Uploader.php#L532
static public function getDispretionPath($fileName)
{
$dispretionPath = '/orders';
return $dispretionPath;
}
to store the files into a different folder.
But I cant find anywhere where the filename is being changed.
Any ideas?
PS: reason for Original Filename is because files uploaded need to be avaliable for download through FTP. So having original name and order # as a folder will solve current requirement.