Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic Aurora Files

 AfterLogic Forum : AfterLogic Aurora Files
Subject Topic: Getting direct download link for a file Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
aliokero
Newbie
Newbie


Joined: 13 October 2020
Online Status: Offline
Posts: 1
Posted: 13 October 2020 at 10:43am | IP Logged Quote aliokero

Доброе время суток!
Подскажите пожалуйста, как в всплывающем окне при публикации приватной ссылки вывести реальную ссылку на файл в отдельном Input, либо в меню предпросмотра изображений справа. Ознакомился с примером Hello World из документации, но столкнулся трудностями при написанием кода.
Back to Top View aliokero's Profile Search for other posts by aliokero
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 14 October 2020 at 12:34am | IP Logged Quote Igor

Hello,

A quick hack to get a download link under image preview would require editing modules/FilesTableviewWebclientPlugin/js/manager.js file - after line 91, insert something like:

Code:
$("#files_view_pane").remove('#downloadLink');

$("#files_view_pane").after('<span id="downloadLink">' + newValue.getActionUrl('download') + '</span>');


You'll need to build static files as shown here to apply changes. Note that this will not be a direct link to a file - it'll be rather long link that redirects to file download.

If you require assistance from our developers on modifying source code of the product, it can be arranged in terms of Professional Services contract. Please contact us via HelpDesk if you're interested; in there, we can communicate in Russian.

--
Regards,
Igor, Afterlogic Team
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide