Topic: "dynamic" rootpath
I'm trying to install MCFileManager and have an issue..
I'm implementing it as a stand-alone (although I have tinymce installed too). I'm using it as a means to let users "attach" files to their posts. On the question post page, there's a link 'Attach Files' and when clicked on, MCFileManager launches. The uploaded files for each post would be stored in a folder designated just for that post. .e.g.
... etc ...
The rootpath is set to /attachments but it has to be /attachments/<postid> depending on the variable <postid> which is known by my own PHP script.
The user posting (e.g. post #333) should not be able to go back into /attachments. They are to be confined in /attachments/post333/.
Keep in mind that <post id> is different everytime a user makes a post so the script has to somehow be able to specify a different rootpath every time there's a post.
What is the best way to achieve this?
Please let me know if you need further clarification.