Page 1 of 1

Default expiration for Weblinks

Posted: Fri Jan 24, 2025 10:27 am
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

Re: Default expiration for Weblinks

Posted: Thu Feb 06, 2025 4:24 pm
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)%>";