rc-upload
Advanced tools
Comparing version 2.6.5 to 2.6.6
@@ -30,2 +30,16 @@ function loopFiles(item, callback) { | ||
if (isAccepted(file)) { | ||
// https://github.com/ant-design/ant-design/issues/16426 | ||
if (item.fullPath && !file.webkitRelativePath) { | ||
Object.defineProperties(file, { | ||
webkitRelativePath: { | ||
writable: true | ||
} | ||
}); | ||
file.webkitRelativePath = item.fullPath.replace(/^\//, ''); | ||
Object.defineProperties(file, { | ||
webkitRelativePath: { | ||
writable: false | ||
} | ||
}); | ||
} | ||
callback([file]); | ||
@@ -32,0 +46,0 @@ } |
@@ -35,2 +35,16 @@ 'use strict'; | ||
if (isAccepted(file)) { | ||
// https://github.com/ant-design/ant-design/issues/16426 | ||
if (item.fullPath && !file.webkitRelativePath) { | ||
Object.defineProperties(file, { | ||
webkitRelativePath: { | ||
writable: true | ||
} | ||
}); | ||
file.webkitRelativePath = item.fullPath.replace(/^\//, ''); | ||
Object.defineProperties(file, { | ||
webkitRelativePath: { | ||
writable: false | ||
} | ||
}); | ||
} | ||
callback([file]); | ||
@@ -37,0 +51,0 @@ } |
{ | ||
"name": "rc-upload", | ||
"version": "2.6.5", | ||
"version": "2.6.6", | ||
"description": "upload ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69244
1721