blueimp-file-upload-expressjs
blueimp-file-upload-expressjs copied to clipboard
file.path undefined in fileinfo.js
There is a problem with the latest versions of nodejs.
In particular in fileInfo.js (line 24) there is the need to know the file path.
function FileInfo(file, opts, fields) { ... this.key = getFileKey(file.path); ... }
but in local.js (line 24) the path is not passed in the object:
var fileInfo = new FileInfo({ name: name, size: stats.size, lastMod: stats.mtime }, options);
The method getFileKey() return path.basename(filePath); but being undefined path that causes an error.