FubarDevelopment / FtpServer

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

How to get file content #119

Open canperk opened 2 years ago

canperk commented 2 years ago

Is there a simple way to access the posted file content either as stream or byte array?

fubar-coder commented 2 years ago

No, there isn't an easy way. The solution that might work would be the implementation of a "proxy" file system.

BlakeAtLynx commented 1 year ago

Hi, I have an application using this ftp server with DI and was wondering how I could trigger an event in my viewmodel whenever STOR is called. I've implemented commandmiddleware but not sure how to get any data back to my viewmodel. Is there a service in the ftp package that triggers an event I can use?

ite-klass commented 6 months ago

@canperk

Is there a simple way to access the posted file content either as stream or byte array?

IUnixFileSystem.CreateAsync() has a Stream data parameter.

Is that not what you want?