View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [CLOSED]Error when upload file to Documents - ProjeQtOr
 
 

[CLOSED]Error when upload file to Documents

More
26 Mar 2013 17:37 - 27 Mar 2013 11:30 #1 by vdeverre
Hi.

When I upload a file to Documents I have an error:
2013-03-26 17:33:11 ***** ERROR ***** cause = move_uploaded_file(../files/documents//Product/Exploitation/droits.ods.16): failed to open stream: Permission denied

As you see, there is 2 slash if then path !

Can you fix it ?
Last edit: 27 Mar 2013 11:30 by vdeverre. Reason: closed

Please Log in or Create an account to join the conversation.

More
26 Mar 2013 17:48 #2 by babynus
Hi,

The double slash is no issue.
Your issue is that PHP user does not have write rights to target folder.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
27 Mar 2013 08:33 #3 by vdeverre
Before update to 3.2.2 I can do upload file.

I can upload file from ticket or task, but not from the Documennts module.
In the input file I see c:\fakepath\<myfile>, it's not the same input file that Ticket or Task.

Please Log in or Create an account to join the conversation.

More
27 Mar 2013 09:45 #4 by vdeverre
This is a bug !

When subdirectory does not exists into '../files/documents/' it created with this right: dr----x--t
and not with this right: drwxr-xr-x

So mkdir and move_upload_file does not write into this directory.

When I change right to 'drwxr-xr-x' all is OK.


I'm under Ubuntu Linux.

Please Log in or Create an account to join the conversation.

More
27 Mar 2013 09:55 #5 by vdeverre
Bug found :silly:

Edit ./model/Document.php
Line 216
replace: mkdir($newLoc,'0777',true);
with: mkdir($newLoc,0777,true);

Please Log in or Create an account to join the conversation.

More
27 Mar 2013 10:38 #6 by babynus
Hi,
I thought this issue was fixed in V3.2.2.

Did you get V3.2.2 soon on monday 25th ?
As I had issues in deploying the version, maybe you got a wrong version.
Can you try and get it again ?

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.050 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.