The only way I've found through search to override a /lib/ file, specifically /lib/Varien/File/Uploader/, is to move the file to /local/Varien/File/ and edit it there.
This is fine and all, but I'd like to have the modified file in my modules namespace. Similar problems, like how to do this with core files, involve rewriting them in your config.xml. Is it possible to rewrite a /lib/ file in config.xml?
No, it's not possible. If you look at how the classes in lib/Varien are instantiated you will see that no factory method is used but the classes are referenced directly by name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With