Page 1 of 1

Impossible to upload bigger files ....

Posted: 21 Jun 2006, 16:49
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 ?

Posted: 28 Jun 2006, 15:46
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.

Posted: 29 Jun 2006, 06:04
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 :-(

questions about file upload methods

Posted: 24 Jul 2006, 22:26
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...

Posted: 24 Jul 2006, 23:28
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...