I have a previously developed module for D7 that supports some of the advanced image display capabilities of the Zoomify JS codes. These exist as a sandbox project at this time. I'm currently thinking of rewriting them for better usability and security. One of the problems I have is a requirement to have a set of unique directories for each content entry. That is Pic1, pic2 . .. Picn each would have a mustard set of sub directorates. I can easily create and manage these directory structuresbut I do not know howI could go about uploading the files into the appropriate locations. For instance pic1/assets/media/music.mp3.
In the Drupal 7 system I tried to use he file_field_paths module. It was not satisfactory. The Zoomify code requires a Lot of filand I could not figure out ow to programmatically activate the paths. Thus the user would have to spend 10-15 minutes individually activating each field. You only have to open the fields settings form and then save it. No changes are really needed You only have to do it once but is a pain Also FFP has a bug which causes intermittent crashes. The maintainers seem unwilling to address the issue though I sent them detailed instructions on how to duplicate and a fix for the problem. (Poorly written if statement)
So I would like some suggestion how I could control the location a file is placed in so that it is unique to ifs individual content item. Could someone please offer some advice or point me in the directio of the proper API's or documentation?