blueimp-file-upload-expressjs icon indicating copy to clipboard operation
blueimp-file-upload-expressjs copied to clipboard

file.path undefined in fileinfo.js

Open mirk8xr opened this issue 8 years ago • 0 comments

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.

mirk8xr avatar Dec 12 '16 19:12 mirk8xr