One last thing.
The renaming method I'm using works great, but the thing is that I'm renaming the files before they are uploaded.
In my scenario, several items can have the same image,so my image must duplicate itself with different names.
I would work fine if the renaming occured after the upload, but right now, old files are being overwritten with the last item name on my collection.
So is there anyway I can rename the files after they've been uploaded ?