This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<div> | |
<lr-config ctx-name="uploader-1" pubkey="demopublickey"></lr-config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as LR from "https://cdn.jsdelivr.net/npm/@uploadcare/blocks@latest/web/lr-cloud-image-editor.min.js"; | |
import { uploadFromUrl } from "https://cdn.jsdelivr.net/npm/@uploadcare/upload-client@6.12.1/dist/esm/index.browser.mjs"; | |
LR.registerBlocks(LR); | |
// Get all image elements and add a "click" handler | |
const editableImages = document.querySelectorAll(".editable-image"); | |
editableImages.forEach((image) => { | |
image.addEventListener("click", editImage); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
listOfFiles, | |
storeFiles, | |
UploadcareSimpleAuthSchema, | |
paginate, | |
} from "@uploadcare/rest-client"; | |
const uploadcareSimpleAuthSchema = new UploadcareSimpleAuthSchema({ | |
publicKey: "YOUR_PUBLIC_KEY", | |
secretKey: "YOUR_SECRET_KEY", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
const { stringify } = require("csv-stringify"); | |
const { | |
listOfFiles, | |
UploadcareSimpleAuthSchema, | |
paginate, | |
} = require("@uploadcare/rest-client"); | |
const filename = "output.csv"; | |
const writableStream = fs.createWriteStream(filename); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
listOfFiles, | |
deleteFile, | |
UploadcareSimpleAuthSchema, | |
paginate, | |
} from "@uploadcare/rest-client"; | |
// Replace demo API keys with yours | |
const uploadcareSimpleAuthSchema = new UploadcareSimpleAuthSchema({ | |
publicKey: "demopublickey", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
listOfFiles, | |
UploadcareSimpleAuthSchema, | |
paginate, | |
} from "@uploadcare/rest-client"; | |
const uploadcareSimpleAuthSchema = new UploadcareSimpleAuthSchema({ | |
publicKey: process.env.UC_PUBLIC_KEY, | |
secretKey: process.env.UC_SECRET_KEY, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Imports | |
const EdgeAuth = require("akamai-edgeauth"); | |
// Configuration | |
const encryptionKey = | |
"73636b61519adede42191efe1e73f02a67c7b692e3765f90c250c230be095211"; | |
const host = "sectest.ucarecdn.com"; | |
const path = "/06933f0d-5f31-425d-a5b8-6c5c2cdaaae6/-/resize/600x/"; | |
const duration = 3200; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Integration HTTP", | |
"flow": [ | |
{ | |
"id": 1, | |
"module": "http:ActionSendData", | |
"version": 3, | |
"parameters": { | |
"handleErrors": false, | |
"useNewZLibDeCompress": true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"context" | |
"github.com/uploadcare/uploadcare-go/ucare" | |
"github.com/uploadcare/uploadcare-go/upload" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Test JS upload</title> | |
<script src="uploader.js"></script> | |
</head> | |
<body> |
NewerOlder