node-s3-uploader
node-s3-uploader copied to clipboard
Unable to parse path with space
Steps to reproduce
Upload a file with a space in the path, e.g. T/altright kreiger.png
Expected behaviour
The space in the path is accounted for, and the image is correctly found.
Actual behaviour
I can escape the space, like so: T/altright\ kreiger.png
but then the path isn't correctly found: Error: ENOENT: no such file or directory,
@Starefossen
Can you provide info about your environment?
- Operating system (Mac, Linux, Windows)
- Node.js version (
node --version
) - ImageMagick version (
identify -version
) - s3-uploader version
This happens for me, it throws an error with no stacktrace with
MacOS v10.12.4
Node v6.10.2
ImageMagick 7.0.5-4 Q16 x86_64 2017-03-25
s3-uploader 2.0.3
I got around it by renaming files with encodeURIComponent()
first, but it would be nice for the plugin to handle it.