Method
getSignedURLForUpload
(props: { name: string })
Source from the content-addressed store, hash-verified
| 31 | |
| 32 | // UPLOADS |
| 33 | getSignedURLForUpload(props: { name: string }): Promise<{ url: string }> { |
| 34 | return new Promise((resolve, reject) => { |
| 35 | this.base |
| 36 | .post("/uploads", props) |
| 37 | .then(({ data }) => { |
| 38 | resolve(data) |
| 39 | }) |
| 40 | .catch((err) => reject(err)) |
| 41 | }) |
| 42 | } |
| 43 | |
| 44 | updateUploadFile(props: { name: string }): Promise<any> { |
| 45 | return new Promise((resolve, reject) => { |
Tested by
no test coverage detected