Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
protogrid:api_endpoints [2020-05-15 12:47] – [/api/v2/apps/<app_name>/<card_key>/attachments/<attachment_key>] 213.55.241.21protogrid:api_endpoints [2020-05-15 15:04] – [/api/v2/apps/<app_name>/cards/<card_key>/attachments/<attachment_key>] 213.55.241.21
Line 301: Line 301:
 The code behind the attachment upload: The code behind the attachment upload:
 <code javascript> <code javascript>
-var HOST = "https://example.protogrid.com/api/v2/apps/example/attachments/"+var HOST = "https://example.protogrid.com/api/v2/apps/example/cards/some_card_key/attachments/"
 function uploadFile(file, progressCallback, successCallback) { function uploadFile(file, progressCallback, successCallback) {
   var key = createStorageKey(file)   var key = createStorageKey(file)
Print/export