Default expiration for Weblinks

Please post here if you have problems in using Wing FTP Server.
Post Reply
Igioz82
Posts: 1
Joined: Fri Jan 24, 2025 10:24 am

Default expiration for Weblinks

Post by Igioz82 »

hi there,
i'm looking about the possibilities to set a system wide weblink expiration date
when my mate generates weblink, this link still valid for 3/6/12 months , and automatically WingFTP server kills expired link
cause i've found 30 pages of old links, and manually cleaned it
FTP
Site Admin
Posts: 2115
Joined: Tue Sep 29, 2009 6:09 am

Re: Default expiration for Weblinks

Post by FTP »

OK, you need to modify the file "webclient/main.html" for your requirement, find the following line first:

$("enable_weblink").focus();

Then insert the following code after that line:

$("expiretime").value = "<%=os.date("%Y-%m-%d %H:%M:%S",os.time()+3600*24*30*3)%>";
Post Reply