@experium/findy-form 1.2.49 → 1.2.50
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,7 +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
|
-
|
|
186
|
+
fd.append('file', file);
|
|
187
187
|
fd.append('name', file.name);
|
|
188
188
|
fd.append('mimetype', fileType);
|
|
189
189
|
|
package/package.json
CHANGED
|
@@ -60,8 +60,7 @@ 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
|
-
|
|
64
|
-
|
|
63
|
+
fd.append('file', file);
|
|
65
64
|
fd.append('name', file.name);
|
|
66
65
|
fd.append('mimetype', fileType);
|
|
67
66
|
|