Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Cannot download from "Files" Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
andryyy
Newbie
Newbie
Avatar

Joined: 04 January 2015
Location: Germany
Online Status: Offline
Posts: 6
Posted: 15 January 2015 at 11:29am | IP Logged Quote andryyy

Hello,

As a soon-to-be customer I hope I am allowed to ask in this forum. :-)

I setup WebMail Pro on Nginx, PHP-FPM and SSL. I do not use a Proxy/Load-Balancer, but NAT from the gateway to my webserver instance. (edit: Debian Jessie, patched)

There is no problem uploading files into "Files" from either WebDAV or web panel.
Though I cannot download files (via web panel). When I click on "Download" nothing happens. I cannot see any actions in my logs, too.
I do not use Adblock or anything like that, tested it via IExplorer, Firefox and Chrome.

This is my nginx configuration: http://paste.debian.net/hidden/82c76626/
Maybe you need the relevant PHP-FPM worker part, too: http://paste.debian.net/hidden/671118fa/

Let me know if you need an account to check it by yourself etc. :-)

Best regards
André
Back to Top View andryyy's Profile Search for other posts by andryyy
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6087
Posted: 16 January 2015 at 1:37am | IP Logged Quote Igor

This is a known problem, it's reproduced on our server as well. Developers are now investigating this, and if it's possible to offer a hotfix, it'll be done.

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


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6087
Posted: 16 January 2015 at 2:04am | IP Logged Quote Igor

Turns out there's a really simple fix. The file to be modified is static/js/app.js, but it isn't used by default - its minified version app.min.js is used. To change that, add the following item to the array defined in data/settings/config.php file:

Code:
'labs.use-app-min-js' => false,


Then locate the following code in static/js/app.js file, line ~36700:

Code:
_.each(oData.Result.Items, function (oValue) {
     var oItem = new CFileModel()
          .allowDrag(true)
          .allowSelect(true)
          .allowCheck(true)
          .allowDelete(true)
          .allowUpload(true)
          .allowSharing(true)
          .allowHeader(true)
          .allowDownload(false)
          .isPopupItem(this.isPopup);


In that code, the following line:

Code:
.allowDownload(false)


should be modifies as follows:

Code:
.allowDownload(true)


Be sure to clear web browser cache to apply changes.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
andryyy
Newbie
Newbie
Avatar

Joined: 04 January 2015
Location: Germany
Online Status: Offline
Posts: 6
Posted: 16 January 2015 at 2:23am | IP Logged Quote andryyy

Okay, no problem. Good to hear it wasn't my fault.

Regards,
André
Back to Top View andryyy's Profile Search for other posts by andryyy
 
andryyy
Newbie
Newbie
Avatar

Joined: 04 January 2015
Location: Germany
Online Status: Offline
Posts: 6
Posted: 16 January 2015 at 9:44am | IP Logged Quote andryyy

Hi Igor,
Thank you! It is working as expected now. :-)

Bye
André
Back to Top View andryyy's Profile Search for other posts by andryyy
 

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