Page 1 of 1

Need Help/Clarification w/ Send Files and Download Links

Posted: Tue Apr 02, 2024 3:47 pm
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?

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

Posted: Wed Apr 03, 2024 3:02 am
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

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

Posted: Thu Apr 04, 2024 7:03 pm
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

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

Posted: Fri Apr 05, 2024 3:16 pm
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.

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

Posted: Fri Apr 05, 2024 4:12 pm
by pepsupport
Got - works great.

If we want same for weblink do we use <WEBLINK> ?

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

Posted: Sat Apr 06, 2024 1:31 am
by FTP
Yes, you are correct.