XUpload - multiple configs - bug? pro version

Message
Author
maurypb
Posts: 8
Joined: Apr 25, 2007 4:42 am

multiple configs - bug? pro version

#1 Postby maurypb » Apr 25, 2007 5:50 am

When using multiple configs in XUploadConfig, the filetypes in config1 are being used for config 2's alert message , even when different filetypes are specified.... I know this isn't clear, so here's an example:

in file=XUploadConfig:

in config 1 (xmode=1)
target_dir => '/var/www/video',
ext_allowed => 'avi|wma|wmv|mov|flv',


in config 2 (xmode=2)
target_dir => '/var/www/user_images',
ext_allowed => 'jpg|jpeg|gif|png',

When using these in a webpage, with xmode set to "2", and uploading a jpg, I get an alert window telling me that only the files in config 1 are allowed.

So, it seems that only config 1 filetypes are being used for the ext_allowed alert message, in all cases.

However, other parameters are being respected - for instance, the files are being uploaded into the correct target directory for both configs.

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

#2 Postby PilgrimX182 » Apr 25, 2007 6:14 am

That is weird :shock: Just tested it - works correct for me.
Check config file for more ext_allowed instances. Do you reload page after changing config? Maybe caching problem, use Ctrl-F5 to reload page.
PM me URL to your upload form problem still occur.