This topic is locked

upload files to different folder depending on user name

1/19/2010 9:06:33 AM
PHPRunner General questions
S
sotosp author

I have a project where diferent users upload files.At the momment i upload all files into one folder called "/files".I would like to make some changes so each user can save file only to his own directory which will be created automatically the first time that the user enters the application.

I tried to find some info about this in manual where i found some info but i do not nkow how to use it. Can you help me?

J
Jane 1/19/2010

Hi,
use Before record added event to upload files to the separate directory for each user.

Here is a sample:

http://www.xlinesoft.com/phprunner/docs/upload_files_to_users_folders.htm

S
sotosp author 1/21/2010

I have tried to implement the example that you proposed to me but obviously, i do something wrong. The files are still uploaded to the "standard" directory even though i changed the red words with my fieldnames.

can you check the example and help me a litle more?
Thank you in advance

Sergey Kornilov admin 1/21/2010

Probably changes were applied to wrong table or two wrong event, hard to tell without seeing your files.
I recommend to post your app to 'Demo Account' and open a ticket at http://support.xlinesoft.com sending your Demo Account URL.