FubarDevelopment / FtpServer

Portable FTP server written in .NET
http://fubardevelopment.github.io/FtpServer/
MIT License
482 stars 163 forks source link

Limit file size #79

Closed suddenelfilio closed 5 years ago

suddenelfilio commented 5 years ago

Is there a way to limit the file size of the uploaded files before they get uploaded? So I want to block files larger than a certain limit.

fubar-coder commented 5 years ago

There is no easy way to do this, because the file size isn't known until the upload is complete. The only thing you can try to do is to abort the PUT command when the file size exceeds a given threshold.