Skip to content

Commit 3c59e4c

Browse files
pwizlagu-stav
andauthored
Fix upload code example
Co-authored-by: Gustav Hansen <[email protected]>
1 parent 56c31d0 commit 3c59e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/developer-docs/latest/plugins/upload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ import fetch, { blobFrom } from 'node-fetch';
149149
const file = await blobFrom('./1.png', 'image/png');
150150
const form = new FormData();
151151

152-
form.append('files', file, "iamge.png");
152+
form.append('files', file, "1.png");
153153

154154
const response = await fetch('http://localhost:1337/api/upload', {
155155
method: 'post',

0 commit comments

Comments
 (0)