Loading

File upload

Get help with problems, or report & discuss bugs in Collabtive

File upload

Postby Pixoyo » 30.11.2009, 15:35

I guys...I'm a newbie...
First of all: compliments...great work! :D

I tried to create folders and upload files and with the folders I'm redirected to a blank page, than browsing back the folder it's graphically there, but nothing on the server. With the files I get a positive response (file uploaded) but there's nothing on the server, and nothing on the database).

The database it's correctly linked...everything else works...

The files folder and its subdirectory 'standard' it's writable...

Any guess?
Thanks,
Giulio :shock:
____________________
http://www.pixoyo.nl
_____________________________________
Pixoyo Design and Multimedia
http://www.pixoyo.nl
User avatar
Pixoyo
 
Posts: 8
Joined: 30.11.2009, 14:26
Location: Amsterdam

Re: File upload

Postby a.i.sidoryak » 01.12.2009, 07:58

It's bug.
to fix it:
in class.datei.php on line 52:
- if (mkdir($makefolder, 0777))
+ if (mkdir($makefolder, 0777,1)) //add directory bug (recursive mkdir)]


i sent it to Philipp, but have no answer.
a.i.sidoryak
 

Re: File upload

Postby Pixoyo » 01.12.2009, 08:30

Hi a.i.sidoryak :ugeek:
thanks for the quick answer...I changed the permissions making the directory, as you told me...but still nothing :x
any guess?
Thanx,
G.
_____________________________________
Pixoyo Design and Multimedia
http://www.pixoyo.nl
User avatar
Pixoyo
 
Posts: 8
Joined: 30.11.2009, 14:26
Location: Amsterdam

Re: File upload

Postby manelet » 01.12.2009, 20:34

Same thing on me!

This is the email i receive (maybe it can help):

Project: TOM TEAM
Folder: folder1File: http://windesire.com/winteam//
manelet
 
Posts: 9
Joined: 01.12.2009, 15:53

Re: File upload

Postby a.i.sidoryak » 02.12.2009, 17:56

Descri[tion of this bug:
1. Collabtive insert a record into DB with some info about created directories
2. Then it try to create folder $makefolder = CL_ROOT . "/files/" . CL_CONFIG . "/$project/$folder/";
and there is an error, because it try to make a subdirectory $folder in $project which not exist.
3. You have a blank screen, but table field is inserted yet.

How to fix it:
1. remove any fields in tables files, projectfolders in DB
2. fix datei.php class
3. test it works
a.i.sidoryak
 

Re: File upload

Postby Pixoyo » 03.12.2009, 13:06

:( it doesn't work.
I create a completly new database, so there where zero entries, I made the modification...but it still doesn't work.
It says that the file is added, but it's not... :roll:
_____________________________________
Pixoyo Design and Multimedia
http://www.pixoyo.nl
User avatar
Pixoyo
 
Posts: 8
Joined: 30.11.2009, 14:26
Location: Amsterdam

Re: File upload

Postby Pixoyo » 03.12.2009, 14:18

line 45:

Code: Select all
$ins = mysql_query("INSERT INTO projectfolders (parent,project,name,description,visible) VALUES ($parent,$project,'$folder','$desc','$visstr')");


I chacked the db and projectfolder it's still empty...never been writtern :|
_____________________________________
Pixoyo Design and Multimedia
http://www.pixoyo.nl
User avatar
Pixoyo
 
Posts: 8
Joined: 30.11.2009, 14:26
Location: Amsterdam

How to make new folder with properties: 0777, and root owne

Postby manelet » 03.12.2009, 14:30

I cannot add a file into a folder because when a folder is created it has this properties: rights 0755, apache owner.

If I manually change folder properties to 0777 and root it works fine!

How can I make that when a new folder is created has this properties: 0777 rights and root client?

Thanks in advance

manel beltran
manelet
 
Posts: 9
Joined: 01.12.2009, 15:53

Re: File upload

Postby Pixoyo » 03.12.2009, 14:42

Projectfolders now has the entries...but file it's till empty... :?:
_____________________________________
Pixoyo Design and Multimedia
http://www.pixoyo.nl
User avatar
Pixoyo
 
Posts: 8
Joined: 30.11.2009, 14:26
Location: Amsterdam

Re: File upload

Postby Pixoyo » 03.12.2009, 14:44

Pixoyo wrote:Projectfolders now has the entries...but file it's till empty... :?:


and the file it's created...and I got the same problem as manelet...permissions are 755...
_____________________________________
Pixoyo Design and Multimedia
http://www.pixoyo.nl
User avatar
Pixoyo
 
Posts: 8
Joined: 30.11.2009, 14:26
Location: Amsterdam

Next

Return to Problems and Bugs

Who is online

Users browsing this forum: Google [Bot]