Przeglądaj źródła

docs: fix transloadit.pick example arguments

Renée Kooi 6 lat temu
rodzic
commit
0f563e7d8c
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      website/src/docs/transloadit-wrapper.md

+ 2 - 1
website/src/docs/transloadit-wrapper.md

@@ -49,7 +49,8 @@ And if any of these methods are not flexible enough, you can always replace them
 Show a modal UI that allows users to pick files from their device and from the web. It uploads files to Transloadit for processing.
 
 ```js
-const resultPromise = transloadit.pick('body', {
+const resultPromise = transloadit.pick({
+  target: 'body',
   params: {
     auth: { key: '' },
     template_id: ''