Feature request: file uploads added to set
Permalink Browser Info Environment
The option to automatically add files uploaded to a particular set would be helpful.
Type: | Discussion |
---|---|
Status: | New |
This works well, but I need to add to a file set dynamically based on the user name of the current session. I already have a file set with the same name as the user and this works great if I declare the file set name outright like in the above example. I am using very similar code to create the file set based on the user name and it works great, but when I add the code below to upload_file.php the files get uploaded to the file manager but are not placed in the set.
$u = new User(); $username = $u->getUserName(); $fs = FileSet::getByName($username); $fsf = $fs->addFileToSet($resp->getFileID());
I added:
Uploads is the name of my file set. The only thing I'm not sure how to do is specify different sets for different forms. Currently, all of my uploaded files would go into the Uploads file set, so if I have another form with an upload button, they would also be placed in the Uploads set. It would be nice if there was a way to specify sets from within the advanced form application.