I am developing a component which has a front-end form. In this form it must be possible to select and upload a File to a user-specific directory.
I found and tested the module Easy File Uploader and it fits my requirements for uploading files (I am using the option "Upload to Username subfolders". The module will then create a folder for each user). The component only allows me to upload files, but not select them again. I placed the module in my edit-form of the component.
Now i have a directory like this:
Now i want to be able to select the files again. (So I can store the filepath for the profile image into the Database) I thought about using a simple dropdown, but how can I realize it with the mvc pattern of joomla 3.3?
Oh, im a bit blind, so I found the form field "filelist" on the joomla docs: http://docs.joomla.org/Filelist_form_field_type
Is there a way to set the directory in the code dynamically?