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

`uploadRootDir` treats directory as prefix #36

Closed coolaj86 closed 11 years ago

coolaj86 commented 12 years ago

Problem

"uploadRootDir": "/path/to/tmp"

creates directories in /path/to such as

/path/to/tmp12345678

whereas

"uploadRootDir": "/path/to/tmp/"

creates directories in /path/to/tmp such as

/path/to/tmp/12345678

solution

uploadRootDir = path.normalize(uploadRootDir + '/');
kristianmandrup commented 12 years ago

See: https://github.com/kristianmandrup/formaline/tree/coolaj86-ideas

Not yet tested.