Downloading File only up to 4kb

Get help from other users here.

Moderators: Contributor, Developer

Downloading File only up to 4kb

Postby zinger » Apr 03, 2008 11:47 am

Hello,

I got problems downloading files attached to an issue. This only works up to a file size of very few kilobytes, around 4Kb. Someone (not me) opened a bug: http://www.mantisbt.org/bugs/view.php?id=9016

I don't think it's a bug but a configuration issue, maybe of PHP. I've searched this forum and the web and adjusted post_max_size and upload_max_filesize to 8M. Still does not help.

Honestly I'm lost. Can someone give me a hint what to do?

I like Mantis very much but not being able of downloading attached files is a reason for not using it.
I'm running Manits 1.1.1 on Win2003, MS SQL 2005, IIS 6.0 with PHP 5.2.5

Many thanks

matthias
zinger
 
Posts: 3
Joined: Mar 18, 2008 2:54 am

Re: Downloading File only up to 4kb

Postby Antonia » Apr 04, 2008 4:54 am

You must change in your php.ini variables: post_max_size and upload_max_filesize and in conf_defaults_inc.php (Mantis-Directory) variable $g_max_file_size. If you get an error you must customize your timeout. That's it!

Antonia
Antonia
 
Posts: 5
Joined: Apr 02, 2008 7:53 am

Re: Downloading File only up to 4kb

Postby zinger » Apr 09, 2008 8:19 am

Antonia wrote:You must change in your php.ini variables: post_max_size and upload_max_filesize and in conf_defaults_inc.php (Mantis-Directory) variable $g_max_file_size. If you get an error you must customize your timeout. That's it!


Thank you for your answer. I double checked this. Everything is set as said.
I also had a look at IIS Server Logs. According to the log the file file_download.php is processed without errors. But just nothing happens when trying to download a file larger than 4 Kb. The error message iin IE just says "Server connection reseted" or something similar, with Firefox nothing happens.

Is there an idea?

matthias
zinger
 
Posts: 3
Joined: Mar 18, 2008 2:54 am

Re: Downloading File only up to 4kb

Postby mule22 » Apr 15, 2008 9:31 am

I have been running into this same problem. Here are a couple things I have dug up:

In order for the files to store properly in MSSQL, you need to change two lines in file_api.php
Have a look at this post for the exact lines and changes :
http://www.mantisbt.org/bugs/view.php?id=6063

Once that is done, your files will be properly stored in the database. However, getting them out is another issue that I am still in the middle of wrestling with. I know the files are now being stored properly, I tested pulling them out with a ColdFusion page and they displayed/saved just fine.

I suspect the issue is somewhere in file_download.php, but I haven't found it yet. Once I do, I'll update this post.
mule22
 
Posts: 1
Joined: Apr 15, 2008 9:26 am

Re: Downloading File only up to 4kb

Postby vzw614 » May 15, 2008 10:01 am

Was anyone able to resolve the issue of downloading/displaying attachments when using SQL Server?

Thanks
Curtis
vzw614
 
Posts: 143
Joined: May 15, 2008 9:59 am

Re: Downloading File only up to 4kb

Postby jensdommaschk » Jun 10, 2008 7:28 am

I have the same issue please help
jensdommaschk
 
Posts: 2
Joined: Feb 13, 2008 4:51 am

Re: Downloading File only up to 4kb

Postby vzw614 » Jun 18, 2008 1:49 pm

Bump on this topic to see if anyone has figured out how to fix this.
vzw614
 
Posts: 143
Joined: May 15, 2008 9:59 am

Re: Downloading File only up to 4kb

Postby vzw614 » Jun 18, 2008 2:11 pm

I figured out how to fix this if you're using MS SQL Server.

First off, you should not have to do any edits to the php files like mule22 suggested. If you take a look at that bug it was fixed a while ago so as long as you're using the latest stable version of Mantis that fix is included.

In your php.ini file locate these 2 settings and change them to the value listed here (the default is only 4kb [4096])

mssql.textlimit = 2147483647
mssql.textsize = 2147483647

Then stop/restart IIS and you should be good to go.

Hope this helps.
Curtis
vzw614
 
Posts: 143
Joined: May 15, 2008 9:59 am


Return to Help

Who is online

Users browsing this forum: No registered users and 15 guests