Getting the *SELECTED* Values for a File Attribute

Okay, I know how to get all of the possible *options* (setting the attribute key type, getting the the controller and calling ->getOptions), but for the life of me, I CANNOT figure out how to build an array of SELECTED/CHECKED values for a file attribute of type "select".

After I get the file object and its array of attributes, does any one know how to list the selected options for a multi/select attribute?


View Replies:
jordanlev replied on at Permalink Reply
Here's a thread about how to do this with page attributes:

Code for file attributes should be very similar.

EDIT: Here's another link that may or may not be useful to you: