Disk space management

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
RTAdams89
-


Joined: 06 Nov 2005
Posts: 102

PostPosted: Thu Dec 22, 2005 7:05 pm    Post subject: Disk space management Reply with quote

I have a free-for-all upload area on my site. Users can upload and download files from it. The upload size is restricted to 4MB, but I want to also restrict the total space all the files take up. Is there some sort of program I can run to limit the maximum size of the folder holding all the files?

I'm running windows XP home.
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Thu Dec 22, 2005 7:16 pm    Post subject: Reply with quote

You could try using a quota if you are using NTFS. Make a username and set that usename to a quota of whatever you want as a maximum and then in your FTP program (if thats what you use) tell it to logon as that user and it will act as no more free disk space once the quota is met.

Ive not tried this myself but in theory it should work.


Alternativly find an ftp server program that will limit folder size for you.


An extreame way of doing it would to make a seperate partition to the size you want. This could mean formatting your hard drive unless you have a partition manager program.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
richardyork
-


Joined: 22 Jun 2004
Posts: 411
Location: United Kingdom

PostPosted: Thu Dec 22, 2005 7:20 pm    Post subject: Reply with quote

You need an FTP Server.
Do a search for FTP on the forum or do a Google search for FTP Servers.

Suggestions:
(Make sure you get the Server package NOT the Client)

*FileZilla http://sourceforge.net/project/showfiles.php?group_id=21558
*Bulletproof FTP Server http://www.bpftpserver.com/download.php
*Cerberus FTP Server http://www.cerberusftp.com/download.htm#download

Have Fun!


EDIT:
Damn,
The Inquisitor beat me to it! LOL
_________________
Please SEARCH the forums BEFORE asking questions!
Back to top View user's profile Send private message
RTAdams89
-


Joined: 06 Nov 2005
Posts: 102

PostPosted: Thu Dec 22, 2005 7:28 pm    Post subject: Reply with quote

The uploads are handled by a php script, so there is no ftping involved. I've tried the disk quota thing, but it doesnt work all that great. Making a special partition might work...

I found a program called MeRiQuota that almost does what i want. The only problem is that it doesnt have an option to "lock" the folder. It does have the ability to run a command though. Is there a windows command that I could run to prevent more files being added to the folder?
Back to top View user's profile Send private message
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Sat Dec 24, 2005 10:41 am    Post subject: Reply with quote

RTAdams89 wrote:
The uploads are handled by a php script, so there is no ftping involved. I've tried the disk quota thing, but it doesnt work all that great. Making a special partition might work...

I found a program called MeRiQuota that almost does what i want. The only problem is that it doesnt have an option to "lock" the folder. It does have the ability to run a command though. Is there a windows command that I could run to prevent more files being added to the folder?


Why don't you check the folder size at runtime?
You could check the folder size with a few lines of code, or if it's likely to get large and slow to count, you could store a variable and tally up the folder size as each file gets uploaded.
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group