PDA

View Full Version : Help me how to limit file size for downloading



hungviet183
08-28-2007, 02:21 AM
I'm using rapidleech to leech files to my host and download to my PC from it for faster speed. Now I want to share with my friends and also want to limit size of file that they download to my host. Example: if they download files that have size bigger 10MB -> rapidleech will deny and cause error (limit at 10MB/file).

I tried so many methods: edit php.ini (max_file_size v..v...) and .htaccess for example but it didn' t work as I wished. I also put php.ini on my rapidleech folder as well.

Would you please helping me solve this problem?

Thanks for your interests, regards!

hungviet183
08-28-2007, 06:26 PM
any help, please?

betiryan
08-29-2007, 10:16 AM
It could be the version of php that's on your box..is it 4 or 5? Next step would be to contact support, either on the phone or live chat.

Good luck!

GOD BLESS,
Beti
http://vetstribute.com

felgall
08-29-2007, 01:05 PM
The best way to limit download filesize is to not upload any files bigger than that limit in the first place.

hungviet183
08-29-2007, 07:38 PM
The best way to limit download filesize is to not upload any files bigger than that limit in the first place.

not upload files -> I'm saying about "download files from other host to my host"

thanks for your reading :)

felgall
08-29-2007, 08:31 PM
That is uploading not downloading. Downloading is where you copy from the internet to your local computer.

hungviet183
08-30-2007, 08:30 AM
That is uploading not downloading. Downloading is where you copy from the internet to your local computer.

I can say: "download files from internet to my host" (my host can be a local computer) -> is it right?

felgall
08-30-2007, 01:20 PM
You download to the computer you are typing at and upload from that computer to elsewhere on the internet. So if it is your computer that you are sitting at that others are to download (from their viewpoint) from then you simply need to restrict remote access to your computer to just those files that they are allowed access to.If they are uploading files (from their viewpoint) then all you can do is to test the size of the file after they have uploaded it and then reject it if it is too big.