We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On write I check if uploaded file is csv and when it is not I return error. After returning the error I got another error and then my client crashes.
strep to reproduce: Put this part of code to your code and try upload file without csv extension.
session.on("write", (pathName, offset, cb) => { if (!pathName.endsWith(".csv")) { return cb(new Error("You must upload csv.")); } console.log(pathName) }
We moved try on https://github.com/kamicane/simple-ftpd/blob/master/lib/requests/stor.js#L39 to line 35 and looks like it works
try
The text was updated successfully, but these errors were encountered:
No branches or pull requests
On write I check if uploaded file is csv and when it is not I return error. After returning the error I got another error and then my client crashes.
strep to reproduce:
Put this part of code to your code and try upload file without csv extension.
We moved
try
on https://github.com/kamicane/simple-ftpd/blob/master/lib/requests/stor.js#L39to line 35 and looks like it works
The text was updated successfully, but these errors were encountered: