rc-upload
Advanced tools
Comparing version 1.6.5 to 1.6.6-beta.1
{ | ||
"name": "rc-upload", | ||
"version": "1.6.5", | ||
"version": "1.6.6-beta.1", | ||
"description": "upload ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -60,2 +60,3 @@ # rc-upload | ||
|onProgress | function || progress callback, only for modern browsers| | ||
|beforeStart| function |null| before upload check, return a Promise, only for modern browsers| | ||
@@ -74,12 +75,14 @@ #### onError arguments | ||
### Note | ||
### IE8/9 Note | ||
if run at ie and set document.domain, then server should output document.domain according to _documentDomain parameter | ||
In iframe uploader way, the content-type of response should be `text/plain` or `text/html`.[referense](https://github.com/blueimp/jQuery-File-Upload/wiki/Setup#content-type-negotiation) | ||
If the Page set document.domain, then server should output document.domain according to _documentDomain parameter. | ||
```js | ||
var ret = ''; | ||
if(postData._documentDomain){ | ||
ret+='<script>document.domain="'+postData._documentDomain+'";</script>' | ||
if (postData._documentDomain) { | ||
ret += '<script>document.domain="'+postData._documentDomain+'";</script>'; | ||
} | ||
this.body = ret +'{"url":"xx.jpq"}'; | ||
this.body = ret + '{"url":"xx.jpq"}'; | ||
``` | ||
@@ -86,0 +89,0 @@ |
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
91
4498
3
0
1
2