Skip to content

How do i use connection.on('.....') #325

Answered by matt-forster
FreshImmuc asked this question in Q&A
Discussion options

You must be logged in to vote

This would be a side effect of storing a file.

The file has already been stored, and the STOR handler would have already finished. You can see the emit here, right in the default STOR commend: https://github.com/QuorumDMS/ftp-srv/blob/main/src/commands/registration/stor.js#L53

So you would listen to this if you want to log out specifically the file that was stored, maybe send a metric to your observability platform, etc.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@matt-forster
Comment options

@matt-forster
Comment options

@matt-forster
Comment options

@matt-forster
Comment options

@FreshImmuc
Comment options

Answer selected by FreshImmuc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #324 on June 23, 2022 16:07.