coolaj86 / formaline

formaline is a module for handling form requests ( HTTP POSTs / PUTs ) and for fast parsing of file uploads.
Apache License 2.0
239 stars 16 forks source link

Better replacing of weird chars from uploaded files and from ( user defined ) upload directory name.. #24

Closed rootslab closed 11 years ago

rootslab commented 13 years ago
  • Let the user to define a RegExp for replacing weird chars from the session ID.. the sessiond ID, from connect session middleware, produces some weird chars ( like '\', '/' .. ), they are not good for generating name of upload directory.
  • Better replacing of weird chars from file names, also the chars escaped by browsers.
kristianmandrup commented 12 years ago

Sounds reasonable...

coolaj86 commented 11 years ago

Formaline v2.0.0 doesn't use sessions. We can add it back, but I don't understand the utility of it. Long random string IDs are generally unique enough.

Reopen if you feel it's worth discussing.