Magento Media Save Path Dispretion Method

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!


Tags: magentouploadfilepathimagesavedispretion