fix: image uploads

This commit is contained in:
Xyphyn committed 2023-09-26 20:23:09 -07:00
1 parent 5f1036ffb5
commit 6a48c554b7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "photon-lemmy",
"version": "1.13.3",
"version": "1.13.3"4
"private": true,
"scripts": {
"dev": "vite dev",
+1 -1
View File
@@ -136,7 +136,7 @@ export async function uploadImage(
instance: string,
jwt: string
): Promise<string | undefined> {
if (!image || jwt) return
if (!image) return
const formData = new FormData()
formData.append('images[]', image)