amirreza mousavi Posted April 18, 2019 Share Posted April 18, 2019 Hi I have a telegram bot which clients can sign in on that and send and receive ticket. I decide to get tickets with their attachments but whmcs API only give a file name to me. how can I get attachment download URL? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted April 19, 2019 Share Posted April 19, 2019 With file name you would simply need to https://{SYSTEMURL}/attachments/{FILE_NAME}. The problem is that if you moved attachments directory (Secure the Writeable Directories) to prevent web based access you'll need to find a different approach. Probably you'll need a script in the middle that re-route the requests and provides the download link to customers. Of course this file must be super-secure otherwise it could be used to carry out malicious activities. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.