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 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.
2 posts • Page 1 of 1