Skip to content

Commit

Permalink
edgecreator-api: Fix base64 string
Browse files Browse the repository at this point in the history
  • Loading branch information
bperel committed Jan 24, 2025
1 parent 3b4dec2 commit 2944226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/edgecreator/api/services/upload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default (io: Server) => {
"jpg",
).match(/\/([^/]+)$/)![1];

await decode(data, {
await decode(data.split(',')[1], {
fname: `${path}/${fileName.replace(/.jpg$/, "")}`,
ext: "jpg",
});
Expand Down

0 comments on commit 2944226

Please sign in to comment.