MCPcopy Create free account
hub / github.com/core7s/react-design-editor / getSignedURLForUpload

Method getSignedURLForUpload

src/services/api.ts:33–42  ·  view source on GitHub ↗
(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) => {

Callers 1

actions.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected