TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,027
  • Total Topics: 21,334
  • Online today: 519
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 134
  • Total: 134

File Uploads/Downloads are Empty

Started by Celtland, August 08, 2007, 12:50:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Celtland

I can't figure out why - but there are a few specific files that when we try to upload them - both as attachments on the forum and as downloads in TP, will upload fine, show up intact in the server, but when you download them they show up on your PC with a size of 0 bytes.  I have tried the downloads both in FF2 and IE7 with different security settings.  I've checked file/folder size limits both in SMF and TP and nothing has been exceeded.  I've made sure the folder permissions on the attachments and tp-downloads folders are set correctly.  The only problem files have been archives... I've tried zip, tar, and 7z files - all upload fine, but will not download.  I don't get any errors trying to download them as attachments from posts, but when I try from the TP downloads section, I get the following:

---modstothemax.net/community/index.php?action=tpmod;dl=adminitem313
2: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /***/***/public_html/community/tp-downloads/Building_Tut4.zip
File: /***/***/public_html/community/Sources/TPdlmanager.php
Line: 1586

and

---modstothemax.net/community/index.php?action=tpmod;dl=admin
2: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /***/***/public_html/community/tp-downloads/Building_Tut4.zip
File: /***/***/public_html/community/Sources/TPdlmanager.php
Line: 1193

and

---modstothemax.net/community/index.php?action=tpmod;dl=get313
2: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /***/***/public_html/community/tp-downloads/Building_Tut4.zip
File: /***/***/public_html/community/Sources/TPdlmanager.php
Line: 881

same as above also for lines 865, 858, and 850.


I'm not sure what to try next.  Thanks for any and all help.

bloc

When you check the files in ftp, they have the a CHMOD of 600 or 644?

Celtland

I just checked now - the latest "problem" file does have permissions set to 644.  You can view the download here:

http://www.modstothemax.net/community/index.php?action=tpmod;dl=item317

When setting the download file size in TP admin - that's for individual files (not the folder)?

Celtland

My apologies - I have temporarily enabled Guest downloads on the that folder.  You should be able to see it now.

IchBin

I just downloaded the file here at school just fine. Perhaps you have made the right change and just need to clear your cache.

Celtland

#5
Thanks!

** Edit **

I knew I responded too soon.  I cleared my cache and am still having the same problem - that download shows up as 0 bytes.  I'll keep plugging away - thanks for the help.

bloc

It does with me too, 0 in size.

Could it be the actual prefix on it? i see its .7z. How about you rename it to zip for example, then try dl it? If it works then, then  maybe the headers sent for 7z files are wrong.

Celtland

Thanks for taking a look, Bloc.  I have tried 7z, tar, and zip files - all with the same results - 0 bytes.  I'm not sure what to try next.

G6Cad

I have seen and had about the same issues before, that time it was the permissions that were set wrong to the tp-downloads folder and the files inside it.

Try and change the permissions to 777 and also change the permissions for the files inside to 777.
Upload the file and try again after that.

Celtland

Thanks G6.  I'll try that when I'm off of work.  Is there a setting I can change in TP - or one I can ask my host to change - that will make all future files uploaded set with permissions of 777?

This website is proudly hosted on Crocweb Cloud Website Hosting.