@experium/findy-form 1.2.48 → 1.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -183,8 +183,7 @@ var File = /*#__PURE__*/function (_Component) {
|
|
|
183
183
|
var fileExtenstion = (0, _ramda.last)("".concat(file.name).split('.'));
|
|
184
184
|
var fileType = file.type || (0, _ramda.path)([type, fileExtenstion], _allowFileExtensions.defaultAllowFileExtensions);
|
|
185
185
|
var validFileType = (0, _validation.checkFileType)(type, file.type, fileExtenstion, allowFileExtensions);
|
|
186
|
-
file
|
|
187
|
-
fd.append('file', file);
|
|
186
|
+
console.log(file);
|
|
188
187
|
fd.append('name', file.name);
|
|
189
188
|
fd.append('mimetype', fileType);
|
|
190
189
|
|
|
@@ -286,6 +285,7 @@ var File = /*#__PURE__*/function (_Component) {
|
|
|
286
285
|
}
|
|
287
286
|
});
|
|
288
287
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (e) {
|
|
288
|
+
console.log(e, e.target);
|
|
289
289
|
var file = e.target.files[0];
|
|
290
290
|
|
|
291
291
|
_this.onSave(file);
|
package/package.json
CHANGED
|
@@ -60,8 +60,8 @@ class File extends Component {
|
|
|
60
60
|
const fileType = file.type || path([type, fileExtenstion], defaultAllowFileExtensions);
|
|
61
61
|
const validFileType = checkFileType(type, file.type, fileExtenstion, allowFileExtensions);
|
|
62
62
|
|
|
63
|
-
file
|
|
64
|
-
|
|
63
|
+
console.log(file);
|
|
64
|
+
|
|
65
65
|
fd.append('name', file.name);
|
|
66
66
|
fd.append('mimetype', fileType);
|
|
67
67
|
|
|
@@ -148,6 +148,7 @@ class File extends Component {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
onChange = e => {
|
|
151
|
+
console.log(e, e.target);
|
|
151
152
|
const file = e.target.files[0];
|
|
152
153
|
|
|
153
154
|
this.onSave(file);
|