TinyPortal

Development => Support => Topic started by: agridoc on March 13, 2006, 06:51:56 AM

Title: Download manager cropping large files in download
Post by: agridoc on March 13, 2006, 06:51:56 AM
After quite a few tests I have updated my site to TP.

A strange problem was encountered.

I have raised the filesize limit to 4.6 Mb (host limit). I had done some tests myself with video files near this size and it worked OK.

When members started uploading files we realized that download stopped at 2Mb. The files are uploded OK and I can download them correctly by FTP.

I uploaded the downloaded files after renaming. The same problem appears.

Files are mpg and wmv. The test files that work OK are also wmv.

Coppermine used so far works OK with uploads so I don't think it's a server problem.

I am a bit confused of what might be happening.

We will do more tests but it takes some time.

Can anyone with experience of large files downloads tell me how it goes in his site?
Title: Re: Download manager cropping large files in download
Post by: Ray on March 13, 2006, 12:33:35 PM
Never had been able to upload large files -- bloc posted a workaround - up load a Small file then ftp the large file with the same name and over wright the file that is in the tp-downloads
Title: Re: Download manager cropping large files in download
Post by: agridoc on March 13, 2006, 01:36:37 PM
Ray there is a limit in HTTP upload. It depends on server settings. My host replied that it was 9 Mb ten months ago. I was not able to upload more than 2.5 ÃŽÅ"b until an upgrade in their systems. Even then 4.6 may be 5 Mb is the limit. I argue about this they said they will look after.

But this is something else. I know the server's current limits. I want the files to be uploaded by the members. I have settings within limits.

Please read again. It's a peculiar problem.
Title: Re: Download manager cropping large files in download
Post by: TwinsX2Dad on March 13, 2006, 02:04:05 PM
There is nothing peculiar about it at all. The limit within HTTP can be breached, but that is an exception more than a rule. Your members' ISPs may not have the exception programmed in or their own computer settings may be causing it.

TP's Download Manager is running through HTTP. For reliable larger uploads, you have to change over to FTP/SFTP. If you don't want to get everyone into an FTP mode, you could try something a little more creative, like a custom handler. An ActiveX control or a Java applet would do the trick, but that would need to be integrated with the TP Download Manager.

Just because you can do it doesn't mean everyone can.
Title: Re: Download manager cropping large files in download
Post by: Ray on March 13, 2006, 03:19:36 PM
I host my own service so I have complete control - and I can not upload large files and when i say large file i mean in the way of gigs - a 20 meg file np at all or even  500 meg ok so it must be your isp setting???
Title: Re: Download manager cropping large files in download
Post by: agridoc on March 13, 2006, 03:46:19 PM
We talk about different things. I will try to explain again

1. There is a 4.6 Mb limit in uploads.
2. Coppermine upload and downloads work OK within this limit.
3. TP max filesize is set to 4.6 Mb.
4. Tests made with two wmv files around 4.5 Mb were sussesful. I uploaded them and me as admin as well as my members can dowload them correctly.

I think one would suggest that the system works OK. But ...

1. Members upload files bigger than 2 Mb.
2. Files are uploaded correctly.
3. If anybody tries to download them the download stops around 2Mb.
4. Using FTP I can download them correctly.
5. I upload through TP the downloaded by FTP complete file after changing name.
6. The file is uploaded correctly.
7. If anybody tries to download this file the download again stops around 2Mb.
8. The initial test files (they are the biggest) can still be downloaded correctly.

There is no  problem with uploads but with certain downloads.

That' s why I say that it is a peculiar problem and drives me crazy.
Title: Re: Download manager cropping large files in download
Post by: Ray on March 13, 2006, 05:24:46 PM
Oh I see now -or No I dont see - well I understand I think -- that is strange dont see why it would do that with such a small file.  BLOC where are you?
Title: Re: Download manager cropping large files in download
Post by: bloc on March 14, 2006, 01:44:56 AM
It does sound strange...I never experienced problems with downloading 2mb++.

Does a file uploaded through Coppermine ( bigger than 2mb) download fine through Coppermine too?
Title: Re: Download manager cropping large files in download
Post by: TwinsX2Dad on March 14, 2006, 05:13:13 AM
Might there be a commonality within file types? Might a jpg download okay, but a png doesn't?
Title: Re: Download manager cropping large files in download
Post by: agridoc on March 14, 2006, 12:03:13 PM
Quote from: Bloc on March 14, 2006, 01:44:56 AM
It does sound strange...I never experienced problems with downloading 2mb++.

Does a file uploaded through Coppermine ( bigger than 2mb) download fine through Coppermine too?
Yes Bloc it works OK with Coppermine.

As you know I had done quite a few tests before changing my working site. It is true that I didn' t do extensive tests with big files (and files 2 Mb up to 4.6 Mb aren' t very big). The test site is SMF 1.1 RC2 my working 1.06 because I need the Table from CSV mod, I have several tables inside messages, mainly results from aeromodelling events.

What is more strange is that it doesn't happen always. We will plan some tests to exclude different possible reasons but I informed my members to stop uploading files bigger than 2 Mb before asking here.

We will use both SMF versions 1.06 and 1.1 RC2. I will inform ifÃ,  we will find something.

P.S. TwinsX2Dad file type is something I had thought of but we already have wmv files with different behaviors.
Title: Re: Download manager cropping large files in download
Post by: agridoc on March 20, 2006, 08:32:19 PM
Not solution found yet but some observations.

Files are uploaded correctly. A binary compare betwen the uploaded file downloaded by FTP and they original shows no difference.

Files that are handled OK with Coppermine can' t be downloaded above 2000 Kb with MSIE (or 1954 KB with Mozilla) if uploaded by TP.

The same behavior exists in the working forum (SMF 1.06, TP .86) and a test forum (SMF 1.1 RC2, TP .86).

The files that download correctly show their size when downloading, the others not.

There might be a hole between 2 - 4 Mb in file handling but I have to check it more. All files that download correctly are either below 2 Mb or above 4 Mb.
Title: Re: Download manager cropping large files in download
Post by: bloc on March 21, 2006, 11:48:17 AM
hm, could it be that Coppermine somehow split it up? Since its ok again after 4 mb = 2 x 2mb?
Title: Re: Download manager cropping large files in download
Post by: agridoc on March 21, 2006, 12:18:59 PM
I don' t know exactly how CPG handles the files but they are the same (one file) as I see and download fy FTP. But it works OK. In fact video files are played if someone clicks on them so a link must be given in the description for downloading.

I had also tested Olate download in the past but TP has a better interface and integration.

Those download tests are a bit time consuming.

I will try in the test forum a big upload as an attachement to see how SMF without TP handles the file.
Title: Re: Download manager cropping large files in download
Post by: agridoc on March 27, 2006, 07:54:04 PM
I did some tests in a test forum without TP in the same server. The problem persists so it must be a problem of incompatibility between the server and SMF's downloading routines. TP has nothing to do with the problem as it uses (I think) SMF' s routines.

Bloc I am sorry for bothering you and the forum but I had not found a similar problem in SMF's forum so I thought it might be a download manager issue.

I will try in SMF's forum and I will contact my host, I hope it will not be necessary to change them, I  :tickedoff: the whole idea and the trouble.
Title: Re: Download manager cropping large files in download
Post by: bloc on March 28, 2006, 08:26:41 PM
Ok. Keep us posted on what you find. :)
Title: Re: Download manager cropping large files in download
Post by: agridoc on April 30, 2006, 05:19:26 PM
After struggling for about one month my host responded and the problem was fixed. I doubt if I will get details of what they have done, but I suppose it was more memory availability as proposed by SMF. Also maximum filesize is now 8 Mb and they had a general upgrade in space etc.

Also some minor problems with Coppermine associated with memory, as cropping large files, were solved.

Unless more data is available I can only say that the problem was caused by host restrictions.
Title: Re: Download manager cropping large files in download
Post by: agridoc on July 19, 2006, 05:18:35 AM
It's an old topic but as I refer to it I must give what finally happened.

The host finally managed to solve the problem with an upgrade of their system and raised also the maximum filesize PHP upload limit to 9Mb.

I had never had an answer for the cause but I believe it was memory allocation and timeout settings.

I have changed host and I have to say JayBachatero was right in his advice  ;) as I have now much more freedom and excellent support.
Title: Re: Download manager cropping large files in download
Post by: bloc on July 19, 2006, 06:21:30 PM
What host you have is everything. :) Glad you found a better one.