express-cdn icon indicating copy to clipboard operation
express-cdn copied to clipboard

BUG : removing the first character of file path

Open code-vj opened this issue 9 years ago • 1 comments

Hi, We are using your library in one of our projects and found a critical bug, line no 527 (fileName = assets.substr(1);) of lib/main.js leads to the upload failure, It actually removes the first character of file path which leads to the upload failure.

code-vj avatar Jun 09 '16 07:06 code-vj

That's not a bug, the library expects path pased to CDN function to have '/' at the beginning. I think you might have forgotten to pass '/' to it?

dharijanto avatar Nov 06 '17 09:11 dharijanto