Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

managing an ftp server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthias - 04 Feb 2008 17:44 GMT
hi there,

i'm sorry, but i've posted this before by accident already into another
group.

here goes: in our webproject we'd like to offer the users a way to
upload files to our server via ftp. so what i need to do is the following:

-> setup an ftp directory plus username and password programmatically
-> limit the uploads to this user ftp directory either by the number of
files or by total upload size. this limit should be configurable in a
way, that I can for example enforce a limit of 10 files per day.

can this be done through .net classes? or are there any (free?)
components around to solve those issues? any good reading available?

thanks in advance, matthias
Mark Fitzpatrick - 04 Feb 2008 18:07 GMT
Unfortunately, I can't think of any way to really do what you want. First,
the FTP server has to have these capabilities built into it natively and I'm
not sure the IIS web server will do this especially since it's driven by
Windows user account permissions. You may be able to find a third-party FTP
server that has things such as a limit to the number of files uploaded, but
I haven't seen one. Usually most file quota mechanisms I've seen are more
worried about the size of the files than the number (especially because a
user could put 100 files into a zip file and get around the file number
limit that way). The interfaces to talk to the FTP server willd epend upon
the FTP server itself. There are calls you can make programatically to IIS,
mostly done through the command prompt but also through the windows
scripting host, that can be used to different server instances and adjust
application settings, but I'm not sure on the level you want.

Signature

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

> hi there,
>
[quoted text clipped - 13 lines]
>
> thanks in advance, matthias

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.