diff options
Diffstat (limited to 'static/api/index.js')
| -rw-r--r-- | static/api/index.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/static/api/index.js b/static/api/index.js new file mode 100644 index 0000000..50b9b26 --- /dev/null +++ b/static/api/index.js @@ -0,0 +1,11 @@ +import * as sfw from 'sfw'; +const { Input } = sfw.element.native; + +export async function upload_images() { + const input = Input.new({ + type: 'file', + multiple: true, + accept: 'image/jpeg', + }) + input.click(); +} |