XFileSharing Pro - Copy files to server

Message
Author
mrddthanh
Posts: 22
Joined: Aug 01, 2012 5:59 pm

Copy files to server

#1 Postby mrddthanh » Jul 27, 2013 6:05 am

Hello Admin!
Why function Copy files to server only 1 URL/1Copy, I paste mutyl URL but it only to server 1 URL(1 file)
How i can Copy Multy URL to server.
where I need edit ?
Thanks

-----------------
if($f->{add_my_acc})
{

my @file_codes = map { /\/(\w{12})\// } $f->{url_mass};
$file_codes[0] ||= $f->{add_my_acc};
my $ids = join("','",grep{/^\w+$/} @file_codes);
my $files = $db->SelectARef("SELECT * FROM Files WHERE file_code IN ('$ids')");
$_->{file_code_new} = CloneFile($_,fld_id => 0) for(@$files);

# Case 1: the files were added through upload form
if($f->{url_mass}) {
my $redirect_url = "$c->{site_url}/?op=upload_result";
$redirect_url .= "&fn=$_->{file_code_new}&st=OK" for(@$files);
$ses->redirect($redirect_url);
}
# Case 2: the files were added through AJAX
print"Content-type:text/html\n\n";
print $ses->{lang}->{lang_added_to_account};
exit;
}
------------------------------

Return to “XFileSharing Pro”



Who is online

Users browsing this forum: No registered users and 0 guests