FubarDevelopment / FtpServer

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

Limit file size #79

Closed suddenelfilio closed 4 years ago

suddenelfilio commented 4 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 4 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.