forked from p96170835/amis
文件发送默认为 post
This commit is contained in:
parent
19cf23c7b5
commit
58bb7bfeb7
|
@ -177,7 +177,9 @@ export default class RichTextControl extends React.Component<
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('file', blobInfo.blob(), blobInfo.filename());
|
formData.append('file', blobInfo.blob(), blobInfo.filename());
|
||||||
try {
|
try {
|
||||||
const response = await fetcher(props.reciever, formData);
|
const response = await fetcher(props.reciever, formData, {
|
||||||
|
method: 'post',
|
||||||
|
});
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
ok(response.data?.link || response.data?.value || (response as any).link);
|
ok(response.data?.link || response.data?.value || (response as any).link);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue