Web Client Uploaded File Customization

Please post here if you have problems in using Wing FTP Server.
Post Reply
IEAWingFTPServer
Posts: 2
Joined: Thu Mar 26, 2026 3:35 am

Web Client Uploaded File Customization

Post by IEAWingFTPServer »

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!
FTP
Site Admin
Posts: 2175
Joined: Tue Sep 29, 2009 6:09 am

Re: Web Client Uploaded File Customization

Post by FTP »

OK, its a personal requirement, so maybe you can modify the file "webclient/uploader.html", replace line 422 from:

Code: Select all

setTimeout(function(){$( '#'+file.id ).remove();}, 1000);
to:

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>");
to:

Code: Select all

$('#infoDiv').html("<span style='color:#1F7FF8'><%=LANG["str_complete"]%> <%=LANG["str_totalfile"]%>: "+uploadedFiles+"<br>"+old_hitkey+"</span>");

old_hitkey = "";
Post Reply