Impossible to upload bigger files ....

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
clandriot
Posts: 8
Joined: 21 Jun 2006, 16:29
Location: Annecy, France

Impossible to upload bigger files ....

Post by clandriot »

Hello.

I have left all the default parameters to upload files in DATABASE mode (2M, ...etc). I have no problem to upload small file ( <100ko ) but I have an error when I try to upload bigger ones :
[21-Jun-2006 18:39:34] PHP Fatal error: 401 in H:\wamp\www\mantis\core\database_api.php on line 128

Could someone help me ?
mroeder
Posts: 39
Joined: 10 Apr 2006, 20:56

Post by mroeder »

There's been a lot of discussion about this topic on this BBS. Since I'm working on a project taht involves big multimedia files, I had to vastly increase my server's file upload size limit. IIRC there are about four or five parameters you have to change in php, ftp server, apache, and mantis. Unfortunately, I can't find my notes about what I did. :( Do a search on "upload" and I'm sure you'll find a lot of posts on the subject.
clandriot
Posts: 8
Joined: 21 Jun 2006, 16:29
Location: Annecy, France

Post by clandriot »

Yes, I have found all these parameters and modified them.
The strange thing is that I have exactly the same configuration on a Windows XP and a Windows 2003 Server and it is all right on XP and not working on 2003 !
To solve my problem, I had to use DISK upload method :-(
mroeder
Posts: 39
Joined: 10 Apr 2006, 20:56

questions about file upload methods

Post by mroeder »

Recently my Mantis server has been giving this error message after file uploads: "SYSTEM WARNING: ftp_put() [function.ftp-put]: Cound not create file." Unfortunately, the error message doesn't give the values of the parameters that routien gets, so it's going to take some fiddling with the code to hunt this down.

I couldn't find any documentation that really explains what the file upload methods DISK, DATABASE, or FTP mean, so I grepped the source code for the various globals set in the preferences file. Interestingly, I could not find anywhere that the various constants $g_file_upload_* are actually used.

Now I'm worried...
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post by Narcissus »

FYI, a config variable by the name of $g_some_variable, for example, is referenced through a function call: config_get( 'some_variable' ).

If you're looking for those variables in the code, drop the $g_ at the start and add single quotes around it. You should be able to find where it's used then...
Post Reply