Need Help/Clarification w/ Send Files and Download Links

Please post here if you have problems in using Wing FTP Server.
Post Reply
pepsupport
Posts: 5
Joined: Thu Jul 13, 2023 2:48 pm

Need Help/Clarification w/ Send Files and Download Links

Post by pepsupport »

Couple of observations - please ack them as valid

The actual user that creates a web link/send file -etc - has no way to manage them after. ie, they can not edit it, stop it, see if it was downloaded or see who that they invited to upload/download has actually done so, nor can they can an email sent to them when a person has uploaded a file per the link in the email.

I tried to add an http event for onfileupload but it does not email the owner of the link, it fails.

Here I sent an upload request to a nonwing user via their email - then they uploaded a file. The send failed.

[06] Tue, 02 Apr 2024 11:05:56 (0000002) User 'doug@promotions.com' created Upload-Link for the folder 'DL UPload'
[06] Tue, 02 Apr 2024 11:06:24 (0000002) User 'doug@promotions.com' updated Upload-Link for the folder '/doug/DL UPload'
[05] Tue, 02 Apr 2024 11:07:23 (0000009) Client 166.199.4.146 started uploading file '4F510144C1F427873D3298D955C8E19F.initial-findings-report.pdf'
[05] Tue, 02 Apr 2024 11:07:27 (0000009) Client 166.199.4.146 uploaded the file '4F510144C1F427873D3298D955C8E19F.initial-findings-report.pdf'
[01] Tue, 02 Apr 2024 11:07:27 start sending mail to .
[12] Tue, 02 Apr 2024 11:07:27 Mail to failed, send header to server error: 454 4.5.1 Error: no valid recipients

What we need is for a user to be able to create a download link - add the emails to external (non wing users) clients and get an email when they have downloaded the files. It appears the email address of non-users is not being captured. What I would like to see is an email sent to the orig wing user that sent the upload request, informing them that the file was uploaded or for a weblink sent out - that the person actually downloaded it?

Can someone point me in the right direction?
FTP
Site Admin
Posts: 2080
Joined: Tue Sep 29, 2009 6:09 am

Re: Need Help/Clarification w/ Send Files and Download Links

Post by FTP »

There is no recipient defined, of course it will fail to send email notification. So please check out this post for a similar functionality: viewtopic.php?t=3613
pepsupport
Posts: 5
Joined: Thu Jul 13, 2023 2:48 pm

Re: Need Help/Clarification w/ Send Files and Download Links

Post by pepsupport »

Thanks, link is helpful.. need one clarification

if username == "<UPLOADLINK>" then

username is from the profile , what value is typically in <UPLOADLINK>?

I know it is supposed to be the path to the upload directory - correct, we are not seeing emails - I suspect the == is failing
FTP
Site Admin
Posts: 2080
Joined: Tue Sep 29, 2009 6:09 am

Re: Need Help/Clarification w/ Send Files and Download Links

Post by FTP »

OK, it means user uploads files via a file request link. And you do not need to replace anything in that Lua script.
pepsupport
Posts: 5
Joined: Thu Jul 13, 2023 2:48 pm

Re: Need Help/Clarification w/ Send Files and Download Links

Post by pepsupport »

Got - works great.

If we want same for weblink do we use <WEBLINK> ?
FTP
Site Admin
Posts: 2080
Joined: Tue Sep 29, 2009 6:09 am

Re: Need Help/Clarification w/ Send Files and Download Links

Post by FTP »

Yes, you are correct.
Post Reply