express-cdn
express-cdn copied to clipboard
BUG : removing the first character of file path
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.
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?