Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] Attachment...
 
Notifications
Clear all

[SOLVED] Attachments can not be download and we can not see them added

7 Posts
4 Users
0 Reactions
8,715 Views
 Sam
(@sam03)
Posts: 4
Active Member
Topic starter
 
[#2691]

Hi,
I have a probleme, the attachments added to projects and to activities can not be download and we can not see them, we only see the number of attachments.
You can check the picture attached.

Thank you.


 
Posted : 29 Oct 2015 22H47
(@mendo15)
Posts: 61
Active Member
 

Same issue here.


 
Posted : 30 Oct 2015 18H38
(@babynus)
Posts: 14952
Member Admin
 

It seems you have issue with file name.

1) check for errors in the log file.
2) check for errors in the browser console.
3) verify if files with only ANSI chararters work fine (non accentuated letters)
4) verify if mb_string module is enabled.
5) try and change "charset to save files on server" on global parameters screen. Must be set to your server charset (for instance "UTF-8" or "ISO-8859-1")

I would bet on 5) :side:


 
Posted : 30 Oct 2015 21H08
(@papjul)
Posts: 143
Active Member
 

I don't know if it's the same issue but when uploading on test case (may affect other elements), no attachment appear, I have this error:
2015-11-03 13:33:00.039 ** ERROR ** ERROR **
2015-11-03 13:33:00.039
** ERROR ** on file '/var/www/prod/tool/file.php' at line (176)
2015-11-03 13:33:00.039
** ERROR ***** cause = mkdir(): Permission denied

I see 0 attachments on my administrator session and the user who uploaded see what is in screenshot.

The user uploaded attachment #93 and then uploaded attachment #94 so the (1) count is wrong also (the count was wrong because it didn't refresh, now I see (2)).

The funny part is that the files are successfully uploaded on the server in a new attachment_XX directory.

(Edit: no special characters in filenames btw)
(Edit2: Looks like it's an issue with the thumbs directory, but I can't find any parameter to change thumbs directory, where is it!? You shouldn't block application when there is an issue with thumbs. It's a shame there is no thumb but it's better to have access to the full file ;))


 
Posted : 03 Nov 2015 15H46
(@babynus)
Posts: 14952
Member Admin
 

You correctly identified issue : the file is an image, so PrpjeQtOr tries and display a thumb of it.
The directory for thumbs is always /files/thumbs (under projeqtor installation directory).
There are other directories requiring write rights, and commonly, every folder in /files should give write access to PHP user.

I'll havr a look about sending an alert insted of error 😉


 
Posted : 03 Nov 2015 21H35
(@papjul)
Posts: 143
Active Member
 

Actually, I moved the directory "files/" outside web access (except for report) so giving access to the outside web access thumbs/ directory was pointless since the directory was hardcoded ^^


 
Posted : 04 Nov 2015 11H20
(@babynus)
Posts: 14952
Member Admin
 

Yes, there are some directories that can be moved (attachments, documents, ...) for security reason, and some that cannot (thumbs, reports, ...) , because they are used to store images that will be displayed on the html pages : so they must be inside web document root.


 
Posted : 05 Nov 2015 12H10
Share:

Scroll to Top