schickling/chromeless

Support for setFileInput() over Proxy

開放

#186 建立於 2017年8月6日

 (2 則留言) (0 個反應) (0 位負責人)TypeScript (606 個分叉)batch import
Proxyenhancementhelp wanted

倉庫指標

星標
 (13,240 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

setFileInput() was implemented in #170. However, the setFileInput() does not currently work over the Proxy as expected because files are not transmitted from the local Chromeless instance to the Proxy (something which may be difficult given the AWS IoT 128KB message size limit.)

This issue tracks progress on supporting the Proxy.

Acceptance Criteria

  • Add support to setFileInput() for S3 paths (which means fetching the S3 file, then passing the local disk path from the resulting object to setFileInput()
  • Add support to setFileInput() for URLs
  • if a local file path is provided to setFileInput() we will try to upload it to S3, then pass the S3 path to the Proxy.
await chromeless.selectFile('.uploader', [
  's3://my-bucket/my/object/prefix/file.jpg',
  'http://sweet-site.cool/my-image.jpg'
])

貢獻者指南