simple-ftpd icon indicating copy to clipboard operation
simple-ftpd copied to clipboard

Firefox causes an error "data encoding must be set to utf8 for listing"

Open TomasHubelbauer opened this issue 8 years ago • 2 comments

When using Firefox to access ftp://localhost:1337/, the library throws the above error. The actual value of dataEncoding is binary. When I comment the check out, LIST works okay anyway.

It's Firefox setting this:

> TYPE I
OK: 200 Transfer type set to binary

Any way to address this?

TomasHubelbauer avatar Mar 18 '18 14:03 TomasHubelbauer

Same problem with FileZilla

pablokvitca avatar Apr 05 '18 16:04 pablokvitca

I commented it out and it worked successfully.

simple-ftpd/lib/requests/list.js


//   if (this.dataEncoding !== 'utf8') {
//     return this.respond(550, 'data encoding must be set to utf8 for listing')
//   }

alirezavafaee avatar Jun 26 '24 11:06 alirezavafaee