@experium/findy-form 1.2.50 → 1.2.51
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.
|
@@ -185,7 +185,6 @@ var File = /*#__PURE__*/function (_Component) {
|
|
|
185
185
|
var validFileType = (0, _validation.checkFileType)(type, file.type, fileExtenstion, allowFileExtensions);
|
|
186
186
|
fd.append('file', file);
|
|
187
187
|
fd.append('name', file.name);
|
|
188
|
-
fd.append('mimetype', fileType);
|
|
189
188
|
|
|
190
189
|
if (validFileType) {
|
|
191
190
|
_this.setState({
|
|
@@ -285,7 +284,6 @@ var File = /*#__PURE__*/function (_Component) {
|
|
|
285
284
|
}
|
|
286
285
|
});
|
|
287
286
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (e) {
|
|
288
|
-
console.log(e, e.target);
|
|
289
287
|
var file = e.target.files[0];
|
|
290
288
|
|
|
291
289
|
_this.onSave(file);
|
package/package.json
CHANGED
|
@@ -62,7 +62,6 @@ class File extends Component {
|
|
|
62
62
|
|
|
63
63
|
fd.append('file', file);
|
|
64
64
|
fd.append('name', file.name);
|
|
65
|
-
fd.append('mimetype', fileType);
|
|
66
65
|
|
|
67
66
|
if (validFileType) {
|
|
68
67
|
this.setState({ loading: true, error: false });
|
|
@@ -147,7 +146,6 @@ class File extends Component {
|
|
|
147
146
|
}
|
|
148
147
|
|
|
149
148
|
onChange = e => {
|
|
150
|
-
console.log(e, e.target);
|
|
151
149
|
const file = e.target.files[0];
|
|
152
150
|
|
|
153
151
|
this.onSave(file);
|