node-s3-uploader icon indicating copy to clipboard operation
node-s3-uploader copied to clipboard

Unable to parse path with space

Open hoodsy opened this issue 7 years ago • 2 comments

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

hoodsy avatar Aug 29 '16 15:08 hoodsy

Can you provide info about your environment?

  • Operating system (Mac, Linux, Windows)
  • Node.js version (node --version)
  • ImageMagick version (identify -version)
  • s3-uploader version

anthonyringoet avatar Aug 30 '16 09:08 anthonyringoet

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.

webdevian avatar Apr 13 '17 14:04 webdevian