Working on Avatar upload image. Now working.

This commit is contained in:
charles-gauthereau
2024-11-11 19:42:58 +01:00
parent c0ab220961
commit debc8272cc
9 changed files with 50 additions and 10 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export const uploadImageAction = userAction
if (env.NODE_ENV === "production") {
// url = `https://${env.S3_ENDPOINT}/${bucketName}/${fileName}`
} else {
url = `http://localhost:8887/${localDir}${fileName}`
url = `http://localhost:8887/uploads/${fileName}`
}
return {
data: {result: result, url: url},