@majoo-ui/react 1.61.0-rc.11 → 1.61.0-rc.13
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.
- package/index.esm.js +1 -1
- package/index.umd.js +1 -1
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -28461,7 +28461,7 @@ const Upload = ({
|
|
|
28461
28461
|
let newFile = files[i];
|
|
28462
28462
|
newFile.uid = new Date().getTime();
|
|
28463
28463
|
newFile.url = URL.createObjectURL(newFile);
|
|
28464
|
-
if (action) {
|
|
28464
|
+
if (action && (newFile.size / 1024 / 1024).toFixed(1) <= maxSizeMB) {
|
|
28465
28465
|
upload({
|
|
28466
28466
|
url: action,
|
|
28467
28467
|
file: newFile,
|
package/index.umd.js
CHANGED
|
@@ -28964,7 +28964,7 @@
|
|
|
28964
28964
|
let newFile = files[i];
|
|
28965
28965
|
newFile.uid = new Date().getTime();
|
|
28966
28966
|
newFile.url = URL.createObjectURL(newFile);
|
|
28967
|
-
if (action) {
|
|
28967
|
+
if (action && (newFile.size / 1024 / 1024).toFixed(1) <= maxSizeMB) {
|
|
28968
28968
|
upload({
|
|
28969
28969
|
url: action,
|
|
28970
28970
|
file: newFile,
|