Previous Thread
Next Thread
Print Thread
Hop To
Joined: Sep 2009
Posts: 20
stranger
stranger
Joined: Sep 2009
Posts: 20
Downloading files previously correctly uploaded by File Manager can not be downloaded if the file size is over 39MB. I have not found if this issue fixed or not to upgrade to latest version.

We use direct link to the attachment but it is not good solution. If you click to download attachment than downloaded file has got size 0 bytes.

http://www.8a8f8.com/ubbthreads.php/topics/1104/Nabilo_Blackhole_12#Post1104


Board Statistics
Version: 7.5.3
Total Members: 1111
New in past 24 hours: 15
New in past 7 days: 112
New in past month: 584
Total Forums: 42
Total Topics: 227
Total Posts: 1314

Last edited by digitec; 10/27/2009 6:25 PM.
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Since it's such a large file it could be that the download script is simply timing out before it's able to finish with the readfile() function. What you can try is edit your download.inc.php file. Around line 46, right after this line:

PHP Code

function page_download_run() {
 
You can try adding this:

PHP Code

set_time_limit(0);
 

Joined: Sep 2009
Posts: 20
stranger
stranger
Joined: Sep 2009
Posts: 20

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, go ahead and remove that line for now. Might be easiest if you can open up a support ticket so I can debug directly. My guess is it's either exceeding the time or memory limit, but you might not be able to override the setting.

Joined: Sep 2009
Posts: 20
stranger
stranger
Joined: Sep 2009
Posts: 20
Rick, I do not know how to open up a support ticket. Please tell me what to do. Do u need access to the server the forum is running? Or is there some other meaning like to get admin rights to our forum panel???

Last edited by digitec; 10/29/2009 12:31 PM.
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
https://www.ubbcentral.com/support.php

I'll end up needing FTP info so I can try and add a bit of debug code to see what's actually going on when a large file is downloaded.

Joined: Sep 2009
Posts: 20
stranger
stranger
Joined: Sep 2009
Posts: 20
Done

Joined: Sep 2009
Posts: 20
stranger
stranger
Joined: Sep 2009
Posts: 20
Hello from Hong Kong,
Originally Posted by Rick
https://www.ubbcentral.com/support.php

I'll end up needing FTP info so I can try and add a bit of debug code to see what's actually going on when a large file is downloaded.


What FTP info do u need? If I give you temp admin rights is it enought? Or do u really need upload FTP info to the server?

Roman

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I'd need to have enough access to actually add some debug code to the download.inc.php file in your scripts directory.

Joined: Sep 2009
Posts: 20
stranger
stranger
Joined: Sep 2009
Posts: 20
ok, I will create the access for u, 5 minutes

Joined: Sep 2009
Posts: 20
stranger
stranger
Joined: Sep 2009
Posts: 20
well see your pm to login

Joined: Sep 2009
Posts: 20
stranger
stranger
Joined: Sep 2009
Posts: 20
any news?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Haven't had a chance to look just yet. Will check into it asap.

Joined: Sep 2009
Posts: 20
stranger
stranger
Joined: Sep 2009
Posts: 20
Any progeress? The issue still persists. Thanks in advance Rick. Roman

Joined: Sep 2009
Posts: 20
stranger
stranger
Joined: Sep 2009
Posts: 20
I have read PM, so I have test all. I tried to download "old" BIG size files and same bad luck, so I tried to upload some bigger file about 60MB to be sure that it is really not fixed. The result is same - Amy member can not still download bigger files :-(


Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Are they immediately giving the 0 byte size or does it download for awhile? I was able to download one of the larger +30MB .rar files on a couple different browsers with no problems.

Joined: Sep 2009
Posts: 20
stranger
stranger
Joined: Sep 2009
Posts: 20
it is 39MB+ if 38 or less than all works fine. Yes it gives me 0 bytes download. You can try here: link to the bigger size attachement with the above problem

if I point the file directly, than no problem so is there any copy and rename issue out there? just have a look. the file is 38.8MB large and can not be handled by the genuine download php script.

Joined: Sep 2009
Posts: 20
stranger
stranger
Joined: Sep 2009
Posts: 20
Well I have to fix it as follow:

at /script/download.inc.php

there is a line of:

} elseif (preg_match("#(gif|jpg|png)#i",$file_extension)) {

I changed to :

} elseif (preg_match("#(zip|gz|rar|gif|jpg|png)#i",$file_extension)) {

now it works fine - the only difference is the browser does not get info how large the file is in total but downloaded file is not corrupted anymore.

Thanks for help guys ;-)


Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Wow, you waited a long time.
It appears this may be a bug.
If you added the extensions to be allowed as attachments in the control panel it should have worked.
So it appears that file types outside of the cp settings for upload are ignored for downloads.
It seems that Rick never caught that you were downloading a file type outside of what is in the string you stated and it also appears it still is in 7.5.7


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
2 members (Nightcrawler, Ruben), 524 guests, and 148 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)