diff --git a/components/upload/demo/avatar.md b/components/upload/demo/avatar.md index 9d00208e60..76281b9eb6 100644 --- a/components/upload/demo/avatar.md +++ b/components/upload/demo/avatar.md @@ -55,7 +55,7 @@ class Avatar extends React.Component { className="avatar-uploader" name="avatar" showUploadList={false} - action="/upload.do" + action="//jsonplaceholder.typicode.com/posts/" beforeUpload={beforeUpload} onChange={this.handleChange} > diff --git a/components/upload/demo/basic.md b/components/upload/demo/basic.md index 21fd8139eb..fbd4d56f8f 100644 --- a/components/upload/demo/basic.md +++ b/components/upload/demo/basic.md @@ -18,7 +18,7 @@ import { Upload, message, Button, Icon } from 'antd'; const props = { name: 'file', - action: '/upload.do', + action: '//jsonplaceholder.typicode.com/posts/', headers: { authorization: 'authorization-text', }, diff --git a/components/upload/demo/defaultFileList.md b/components/upload/demo/defaultFileList.md index 4f62122339..020de905ac 100644 --- a/components/upload/demo/defaultFileList.md +++ b/components/upload/demo/defaultFileList.md @@ -17,7 +17,7 @@ Use `defaultFileList` for uploaded files when page init. import { Upload, Button, Icon } from 'antd'; const props = { - action: '/upload.do', + action: '//jsonplaceholder.typicode.com/posts/', onChange({ file, fileList }) { if (file.status !== 'uploading') { console.log(file, fileList); diff --git a/components/upload/demo/drag.md b/components/upload/demo/drag.md index 4a21db9e7e..5533f9c052 100644 --- a/components/upload/demo/drag.md +++ b/components/upload/demo/drag.md @@ -25,7 +25,7 @@ const props = { name: 'file', multiple: true, showUploadList: false, - action: '/upload.do', + action: '//jsonplaceholder.typicode.com/posts/', onChange(info) { const status = info.file.status; if (status !== 'uploading') { diff --git a/components/upload/demo/fileList.md b/components/upload/demo/fileList.md index 134e6bb284..0df0b684c3 100644 --- a/components/upload/demo/fileList.md +++ b/components/upload/demo/fileList.md @@ -65,7 +65,7 @@ class MyUpload extends React.Component { } render() { const props = { - action: '/upload.do', + action: '//jsonplaceholder.typicode.com/posts/', onChange: this.handleChange, multiple: true, }; diff --git a/components/upload/demo/picture-card.md b/components/upload/demo/picture-card.md index 080d255035..5c342c5491 100644 --- a/components/upload/demo/picture-card.md +++ b/components/upload/demo/picture-card.md @@ -50,7 +50,7 @@ class PicturesWall extends React.Component { return (