mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use string instead of URL with fetch
This commit is contained in:
parent
87b90fbeaa
commit
5c1e4e4667
1 changed files with 1 additions and 2 deletions
|
|
@ -722,8 +722,7 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element {
|
|||
throw 'No upload URL available'
|
||||
}
|
||||
|
||||
const uploadSignedUrl = new URL(request?.uploadSignedUrl)
|
||||
const uploadResult = await fetch(uploadSignedUrl, {
|
||||
const uploadResult = await fetch(request?.uploadSignedUrl, {
|
||||
method: 'PUT',
|
||||
body: file,
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue