This topic is locked

Feature Request: File upload/download directory dependancy

2/27/2006 13:16:50
PHPRunner General questions
J
jme author

Would be cool if, depending on another tables selection, the file uploads/downloads directories could be changed.
Background

===========

My team required 5 different forms to collect information on my companies intranet. Typically 75% of the form selections are similar. All include file uploads.
Instead of creating 5 different form admin sections, I created 5 different form clients which hide the field which indicates the form type when data is submitted.
I created a single backend manager which allows admin users to add/edit/view/etc all the different form tables.
It's cool, except the backend manager can only use a single upload/download location. I can set different locations on the clients which can save properly. If I try to use the backend manager, only the first of the five forms works.
Make sense?
Thanks,
Julian

Sergey Kornilov admin 2/28/2006

Julian,
create a common directory for all projects and five subdirectories inside common directory.

For example,

c:/uploads,

c:/uploads/1,

c:/uploads/2 etc.

For admin specify c:/uploads as Folder where files reside on the View format and Edit format dialogs on the Formatting Tab.

For other users set c:/uploads/1, ... , c:/uploads/5 accordingly.

After you build the pages admin can add subfolder name after upload file selection to save it in specidied subdirectory.

I.e. type in

1/file.txt

in filename box to save the file to the first subfolder.