Items with images use own folder
dwains - 6 months ago
Currently i'm working on a pyro module which has items. Each item has a files field type. I want if you create a new item you upload the images to a temporary folder. After you save the item there must be a folder created with the id or title of the item and the item images need to be moved to there. So I don't get a folder with thousand of images. Also if you edit a item the new uploaded images must be uploaded in the existing item folder.
What is the best way to approach this?