The best way to store a plurality of documents to one record

mmmag

New Member
Hello. I have a list of employees. For each employee it is necessary to download his documents. These are a lot of different documents (.pdf,docx,.jpg,.zip) What is the best way to organize it? When using ajax upload, it is not possible to create a folder for each employee, it is necessary to store everything in one folder, and there may be the same file names. Also in ajax upload it is not possible to use $formModel->formData to rename documents and assign an entry ID or employee name.
Without using ajax, you get to download only one documents or one zip?
 
When using ajax upload, it is not possible to create a folder for each employee...
According to the Wiki certain placeholders do work with Ajax, too:
Upload directory - the folder into which the uploaded files can be stored. Path to upload directory (eg images/stories/). Passed through replacement code, so images/stories/{$my->id} would be replaced with the current user's id.
So, if the employees are logged in and do the uploads themselves, this may work for you. You may as well experiment with other types of placeholders.

Without using ajax, you get to download only one documents or one zip?
Correct, no Ajax = one file per fileupload element. Of course you could have multiple elements...
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top