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?

  • 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

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

$group_id = ee()->session->userdata('group_id');
$upload_destinations = ee()->file_upload_preferences_model->get_file_upload_preferences($group_id);
  • 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.