Skip to content

Commit f63629f

Browse files
alexanderwallinJohann
authored andcommitted
fix(docs): Remove mime type from createUpload() example (#232)
1 parent b4070b4 commit f63629f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/create-environment-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ export default function createEnvironmentApi ({
591591
*
592592
* client.getSpace('<space_id>')
593593
* .then((space) => space.getEnvironment('<environment-id>'))
594-
* .then((environment) => environment.createUpload({file: uploadStream, 'image/png'})
594+
* .then((environment) => environment.createUpload({file: uploadStream})
595595
* .then((upload) => console.log(upload))
596596
* .catch(console.error)
597597
*/

0 commit comments

Comments
 (0)