Sitename in Download File Name!

musicdmca5046

New Member
YetiShare User
Apr 28, 2015
16
0
0
#1
Hi!

I want to add my filehosting name inside the file name which is downloaded.

like:

[filehosting.com]my_file_name.exe

Anybody know how to ?

Thanks,
 

adminitmehal6054

New Member
YetiShare User
Jul 11, 2016
29
0
0
#2
yes of course u change it..

just go to configuration then click to translation and see manage translations just click on...there are many option u see. just search and change if you want...
 

adam

Administrator
Staff member
Dec 5, 2009
1,743
29
48
mfscripts.com
WEBSITE
https://yetishare.com
LOCATION
UK
#6
Hi,

Have a look in:

/core/includes/file.class.php

Find:

public function download(

Within that function find any instances of:

$this->originalFilename

Replace each with:

('['._CONFIG_SITE_HOST_URL.']'.$this->originalFilename)

I've not tested this so it may need tweaking, although it should at least point you in the right direction. :)

Let me know how you get on.

Thanks,
Adam.
 

kieranmm6497

New Member
YetiShare User
Mar 30, 2017
7
2
3
#8
No good for me i'm afraid doesn't work :(

Is this something that can be an option in the next update for the Admin Panel?
 

adam

Administrator
Staff member
Dec 5, 2009
1,743
29
48
mfscripts.com
WEBSITE
https://yetishare.com
LOCATION
UK
#9
Hi,

If there's other interest in adding it, it could be included. If you raise a request in the RFCs section it'll be logged for review on the next dev round.

Thanks,
Adam.