Cos upload

From AceDataCloud/Skills · View interactive version

Cos upload is an AI agent skill from the GitHub repository AceDataCloud/Skills. Upload a local file to AceData Cloud CDN and get back a public URL. Use whenever you produce a local artifact (image, audio, video, doc) that another API needs as a URL, or that you need to return/persist (e.g. feed a generated image into an image-to-video API, or publish a finished video).

How to use this skill

Skill file

Upload a file → AceData CDN URL

Turn a local file into a public https://cdn.acedata.cloud/... URL.

Upload (multipart, synchronous)

curl -s -X POST https://platform.acedata.cloud/api/v1/files/ \
  -H "Authorization: Bearer $ACEDATACLOUD_PLATFORM_TOKEN" \
  -F "file=@/path/to/video.mp4"

On HTTP 200, use the returned file_url rather than constructing a URL. The platform generates a unique uploads/<uuid> path and preserves the uploaded filename's safe extension. The returned mime is the MIME type written to object-storage metadata. One file per request (loop for several); the default limit is 100 MB per file.

Use a filename whose extension matches the actual content. The upload part's MIME type is stored as supplied; if omitted or application/octet-stream, the platform infers it from the filename using standard MIME mappings. Neither extension handling nor MIME inference converts the file's bytes.

When to use

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.