FtpServer icon indicating copy to clipboard operation
FtpServer copied to clipboard

How to get file content

Open canperk opened this issue 3 years ago • 3 comments

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

canperk avatar Oct 05 '21 15:10 canperk

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

fubar-coder avatar Oct 06 '21 07:10 fubar-coder

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?

BlakeAtLynx avatar Jul 10 '23 19:07 BlakeAtLynx

@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?

ite-klass avatar Feb 07 '24 16:02 ite-klass