1. av
  2. Bug Report
  3. Saturday, May 09 2015, 01:13 PM
If you attach files to a topic, then the files are applied perfectly. ( http://sosedi.ml/ru/groups/view/2/topic_id:4 )

When trying to watch or download the files, it turns out the problem.
For example: attached to a topic PDF file ( AC150401001.pdf )
in a topic on the screen and the file is displayed as PDF
Download or view the file fails. The file is damaged.
Confused yet that when you try to open a file in Firefox, to existing file extension added another extension html

How can I fix it?
Thanks in advance.
av Accepted Answer
Here's what we found:
In OS Windows (XP and 8.1) files are not opened (IE, FireFox or Acrobat Reader).
But that's if the same file from the topic open in Firefox at Ubuntu - all open and running. But the operating system and the application warns that the file can be destroyed.
  1. more than a month ago
  2. Bug Report
  3. # 1
admin Accepted Answer
Admin
Hi,
sorry for late reply, it was weekend for us.

thanks for report it ;)

to fix this replace at line 69 in file /plugins/jsn/socialnetwork/socialnetwork.php this:
if( $ajaxEnv == 'XMLHttpRequest'/* || $isAdmin*/ )

with this:
if( $ajaxEnv == 'XMLHttpRequest' || (isset($route[1]) && $route[1]=='attachments'))
  1. more than a month ago
  2. Bug Report
  3. # 2
av Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 3
admin Accepted Answer
Admin
You have right, missing )
if( $ajaxEnv == 'XMLHttpRequest' || (isset($route[1]  ) && $route[1]=='attachments'))
  1. more than a month ago
  2. Bug Report
  3. # 4
admin Accepted Answer
Admin
I undestand now this forum remove ) because there is some problem with emoticon
  1. more than a month ago
  2. Bug Report
  3. # 5
av Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.