I can't upload from a file after uploading from a URL.
- Dominant language
- TypeScript
- Stars
- 285
- Forks
- 307
- PR merge metrics
- No merged PRs in 30d
Description
I can't upload from a file after uploading from a URL.
Maybe the content type of the request is still in json.
Is there a way to fix it?
Reproduction of the request
first request (from local file)
`Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryuHTzdLz0RSAlMUhc`
second request (from url)
`Content-Type: application/json`
third request (from local same file)
`content-type: application/json; charset=utf-8`
settings
```
image: {
class: ImageTool,
inlineToolbar: true,
config: {
additionalRequestHeaders:{
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content')
},
endpoints: {
byFile: '/editor/uploadfile', // Your backend file uploader endpoint
byUrl: '/editor/uploadfile', // Your endpoint that provides uploading by Url
},
types: ".jpg,.gif,.png,image/gif,image/jpeg,image/png",
captionPlaceholder: "caption"
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.