fix: image uploads
This commit is contained in:
1 parent
5f1036ffb5
commit
6a48c554b7
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "photon-lemmy",
|
"name": "photon-lemmy",
|
||||||
"version": "1.13.3",
|
"version": "1.13.3"4
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
+1
-1
@@ -136,7 +136,7 @@ export async function uploadImage(
|
|||||||
instance: string,
|
instance: string,
|
||||||
jwt: string
|
jwt: string
|
||||||
): Promise<string | undefined> {
|
): Promise<string | undefined> {
|
||||||
if (!image || jwt) return
|
if (!image) return
|
||||||
|
|
||||||
const formData = new FormData()
|
const formData = new FormData()
|
||||||
formData.append('images[]', image)
|
formData.append('images[]', image)
|
||||||
|
|||||||
Reference in new issue
Block a user