hi,
I am having problems on my download section, sometimes happens that clicking on the Download button, nothing is downloaded.
I wrote to my host asking information about this issue, and they said that tinyportal loads the whole file to download on server memory (I think on Buffer memory, the same used for scripts). So when the buffer is full, the file isn't downloaded.
there is a way to part the files during the buffer loading, so without waste the buffer?
Nothing we can do within TP no
You need to eather ask your host to fix that issue as it's a server issue, or make the download files maller or something
The only thing that is used is output buffering. If you're getting that error, it is probably because your host is over-selling their server. It sounds like they have too many clients on their server eating up the memory that their php configuration is set at. If you're host isn't willing to fix this, you should move hosts.
right now my buffer is 24MB, is it good?
not really if you are ona shared host, you have to talk to them raid, you and them are the ones holding the answers to your question how to solve this issue you have :-\
hi, sorry for the late reply, now it works for file under 8mb, but what about chenge the link on Download button?
to remove the Get function, and add the direct html link to the file, so to not waste the buffer memory? is it a good idea, or is it unsafe? (about security)
Unsafe it is as the functions are removed through the security
yes, but I don't want ot change the main code, just want to change the template, and change the download button like:
example:
<a href="*board url*/index.php?action=tpmod;dl=getXXX"><img style="margin: 5px;" align="right" src="*images dir url*/TPdownloadfile.gif" alt="" /></a>
<a href="*board url*/*download folder*/*filename*"><img style="margin: 5px;" align="right" src="*images dir url*/TPdownloadfile.gif" alt="" /></a>
May I have some problems making these changes?
Changing the button would change it for ALL download items. At this time, TP does not support having direct links.
thx for reply, changing this, makes it possible (it's just a test):
<a href="*board url*/*download folder*/'.$dlitem['file'].'"><img style="margin: 5px;" align="right" src="*images dir url*/TPdownloadfile.gif" alt="" /></a>
and just change the htaccess, and add an index.php to not make browsable the tp_download folder.
My question is if it's safe, with download folder chmod 755
thx
removing the htaccess will allow anyone to hotlink your downloads from any other site.
actually I saw boards linking our "dl=get link" as on code:
http://www.darkforge.it/board/index.php?action=tpmod;dl=get115
that why I was thinking on this way, to solve at least my buffer problem for big files
Will not work, you cant have external links througn the tp:dl manager
If you remove the htaccess the security is gone.
If you do it like you describe now and keep the ht file, it will not allowe the download as they cant access the file.
There are no way you can keep it safe, and have big upload if your host doesent change the file size on the php.ini,
ok, right now my buffer size is 24MB, what is a good size for you guys? 30-40...