XUpload - dynamically user_dir

Posts: 2
Joined: Oct 08, 2007 6:09 am

dynamically user_dir

#1 Postby sanchoo » Oct 13, 2007 10:41 am

I'm have one problem.

Code: Select all

<form name="F1" enctype="multipart/form-data" action="./cgi-bin/upload.cgi?upload_id=" method="post" onSubmit="return StartUpload();" target="upload">

  <input  type="hidden" name="target_dir" value ="{$foo.user}">

target dir - this dir uplad files. (./uplads/sanchoo/)

How edit file uplad.cgi for files uplad the ./uplads/sanchoo/

User avatar
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Oct 15, 2007 8:52 am

What XUpload version? Free or Pro?

For Pro:

in config file set "allow_ext_folder => 1,"
and specify 'target_dir' folder.
Then just specify subfolder in target_dir hidden field, no need to edit upload.cgi

For Free:
search the forum, I gave solutions for this already.