
from cloudbase-skills13
Reference guide for browser-side CloudBase storage using @cloudbase/js-sdk: upload, temp URLs, download, delete, and CORS/security-domain best practices.
This reference skill documents how to perform browser-based storage operations with the CloudBase Web SDK. It explains initializing the SDK, uploading files from frontends, creating temporary preview/download URLs, deleting objects, and handling download flows in client code. The file also includes a local-development recipe for matching dev origins to CloudBase security domains.
Use when implementing or debugging browser uploads/downloads that rely on @cloudbase/js-sdk: uploadFile, getTempFileURL, downloadFile, or deleteFile. Use it to resolve CORS/security-domain failures during local development or on custom domains. Do NOT use for backend storage administration or Mini Program file APIs.
Useful to coding assistants that can generate or patch frontend JavaScript/TypeScript (Copilot, Codex, Cursor, Claude Code, Gemini). The guidance is best consumed by agents that edit client-side code or advise on CORS and environment configuration.
This skill has not been reviewed by our automated audit pipeline yet.