XUpload - Pro version help

Message
Author
dsjadoun
Posts: 5
Joined: Aug 27, 2008 4:05 pm

Pro version help

#1 Postby dsjadoun » Sep 03, 2008 5:45 am

Hi ,

is it safe to comment the following code in upload.cgi (latest pro version), because in my edit form none of file fields are mandatory.

#line 227
if($#files==-1)
{
&lmsg("ERROR: No files uploaded");
sleep 2;
&DelData($temp_dir);
&xmessage("ERROR: No files uploaded");
}


Also --

I'm not been able to relate which file uploaded from which input field.

Can i change something in upload.cgi (may be in below code) to include the input field name with other variables.

for my $f (@files)
{
my @file_fields = qw(file_name file_name_orig file_status file_size file_descr file_mime);
print"<textarea name='$_\[]'>$f->{$_}</textarea>" for @file_fields;
}


Please help me to finish the upgrade from free to pro version.

dsjadoun
Posts: 5
Joined: Aug 27, 2008 4:05 pm

#2 Postby dsjadoun » Sep 12, 2008 7:16 pm

I'm not sure why i was not given a single reply?

Anyways i made it working using a Java Script workaround to identify which file is uploaded from which input field. Also commented the line in upload.cgi that ask for at least one file to be uploaded.

Thanks Anyways.

Dharmendra