0

I'd like to show a list of available upload destinations on a form in a custom module, are there functions to help with this?

2
  • Could you be a little more clear? There are add-ons like Assets that make this very trivial if you are concerned with content editors organizing their files. devot-ee.com/add-ons/assets. If you meant something else, please edit your question for clarity. – jrothafer May 29 '15 at 17:13
  • sorry, it's for a custom module – user6359 May 29 '15 at 17:17
0

Yup, just load and then use the File Upload Preferences model:

$group_id = ee()->session->userdata('group_id');
ee()->load->model('file_upload_preferences');
$upload_destinations = ee()->file_upload_preferences_model->get_file_upload_preferences($group_id);
1
  • Thank you, one correction: it's ee()->load->model('file_upload_preferences_model') – user6359 May 30 '15 at 8:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.