We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eafe85 commit cacc43fCopy full SHA for cacc43f
lib/fileinfo.js
@@ -4,18 +4,11 @@ var fs = require('fs'),
4
module.exports = function (options) {
5
6
var FileInfo = function (file) {
7
-// this.name = file.name;
8
-// this.originalName = file.name;
9
-// this.size = file.size;
10
-// this.type = file.type;
11
-// this.deleteType = 'DELETE';
12
- this.name = file.originalFilename;
13
- this.originalName = file.originalFilename;
14
- this.size = file.size;
15
- this.type = file.mimetype;
16
- this.deleteType = 'DELETE';
17
- this.path = file.filepath;
18
- file.path = file.filepath;
+ this.name = file.name;
+ this.originalName = file.name;
+ this.size = file.size;
+ this.type = file.type;
+ this.deleteType = 'DELETE';
19
};
20
21
FileInfo.prototype.validate = function () {
0 commit comments