I am looking to upload images on my server in the directory /media/catalog/product
then it will take the first character of the image and place it in a directory which matches that character (also needs to create the directory if it doesnt exist) and then does the same for the second character.
e.g
if I upload an image called product.jpg
it will end up in the directory /media/catalog/product/p/r/
test.jpg
-> /media/catalog/product/t/e/
the images are all in a folder on my computer, or I can upload them ALL to one directory.
I am trying to do this with Magento version 1.9