When a user uploads a file to our site, I want to display a custom message stating the (filename) was successfully uploaded. How can I accomplish this? Would I modify the webclient html code or can I add a custom LUA script for the HTTPS ONFileUploaded event? I tried the script but nothing works.
I had the directory option set to list directory turned off. So, when the user uploaded a file, it did not show the file was uploaded successfully. Basically, they did not see the file in the list and were suspicious it did not upload.
Thanks for any suggestions and help!
Web Client Uploaded File Customization
-
IEAWingFTPServer
- Posts: 2
- Joined: Thu Mar 26, 2026 3:35 am
-
FTP
- Site Admin
- Posts: 2175
- Joined: Tue Sep 29, 2009 6:09 am
Re: Web Client Uploaded File Customization
OK, its a personal requirement, so maybe you can modify the file "webclient/uploader.html", replace line 422 from:
to:
And replace line 488 from:
to:
Code: Select all
setTimeout(function(){$( '#'+file.id ).remove();}, 1000);Code: Select all
setTimeout(function(){$( '#'+file.id ).remove();}, 1000);
old_hitkey += file.name+"<br>";And replace line 488 from:
Code: Select all
$('#infoDiv').html("<span style='color:#1F7FF8'><%=LANG["str_complete"]%> <%=LANG["str_totalfile"]%>: "+uploadedFiles+"</span>");Code: Select all
$('#infoDiv').html("<span style='color:#1F7FF8'><%=LANG["str_complete"]%> <%=LANG["str_totalfile"]%>: "+uploadedFiles+"<br>"+old_hitkey+"</span>");
old_hitkey = "";
Wing FTP Server
English
Deutsch
简体中文