Magento Media Save Path Dispretion Method
Feb 17, 2011 · 1 minute readCategory: magento
If you want to calculate the actual save path that Magento will use for an image file for example then you might find yourself scouring the source code for the specific method that does this.
It’s not the easiest to find, in fact its tucked away in the lib folder inside the Varien_File_Uploader class.
The method in question is a usefully static method Varien_File_Uploader::getDispretionPath();
Sorted!