Skip to content

Commit cacc43f

Browse files
authored
下に戻し
1 parent 0eafe85 commit cacc43f

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

lib/fileinfo.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,11 @@ var fs = require('fs'),
44
module.exports = function (options) {
55

66
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;
7+
this.name = file.name;
8+
this.originalName = file.name;
9+
this.size = file.size;
10+
this.type = file.type;
11+
this.deleteType = 'DELETE';
1912
};
2013

2114
FileInfo.prototype.validate = function () {

0 commit comments

Comments
 (0)