This topic is locked

How to set multiple file locations

4/3/2008 4:22:08 AM
PHPRunner General questions
F
Fawaz author

I have a field called 'documents' which contains documents for clients.
I need to set up different folders to upload for differet clients.
For example,
Client A: documents locations is files/client_A

Client B: documents locations is files/client_B

Client C: documents locations is files/client_C
How can I do this?
Thanks,

Fawaz

J
Jane 4/3/2008

Fawaz,
the file locations are stored in $files_move array.

So you can change values in this array in Before record updated/added event.
Also you'll need to modify $values["FileField"] there to point to new file location.
However I don't have a ready to go solution for this.