the file name for example is
test.zip
when u download it the script renames it to
sitename.com_test.zip
XFileSharing Pro - is it possible to add sitename to filename after download?
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
In index.cgi find
and add below:
Code: Select all
$file->{fsize} = $ses->makeFileSize($file->{file_size});
Code: Select all
$file->{file_name} = "sitename.com_$file->{file_name}";
thanks for your reply but it doesn't work
when i choose file to download for example as this pic

you'll go to this page to create the link and the file will be with sitename like this picture

but after you'll get the link without sitename

but really thanks for your reply wating if there is any solution
when i choose file to download for example as this pic

you'll go to this page to create the link and the file will be with sitename like this picture

but after you'll get the link without sitename

but really thanks for your reply wating if there is any solution
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
oh, then undo the change I've told you and do this:
in fs.cgi find
and add below:
this should update filename everywhere.
in fs.cgi find
Code: Select all
$filename=~s/[^\w\d\.-]/_/g if $c->{sanitize_filename};
Code: Select all
$filename = "sitename.com_$filename";
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm