oss-upload-online-access

Upload local files or URLs to Aliyun OSS or Tencent COS and generate public access URLs.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/liuhean2021/Anan-Agent-Skills --skill oss-upload-online-access
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oss-upload-online-access
Source: https://github.com/liuhean2021/Anan-Agent-Skills/tree/main/skills/oss-upload-online-access
Command: npx skills add https://github.com/liuhean2021/Anan-Agent-Skills --skill oss-upload-online-access

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ali-oss, axios, cos-nodejs-sdk-v5, stream-to-buffer, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows you to easily upload files to cloud object storage services like Aliyun OSS or Tencent COS, and then provides you with a public URL to access or share those files online.

Core Features & Use Cases

  • File Upload: Upload local files or files from URLs to cloud storage.
  • Public URL Generation: Automatically generates a publicly accessible link for uploaded files.
  • Cross-Cloud Support: Works with both Aliyun OSS and Tencent COS.
  • Use Case: You have a large design asset that you need to share with a client. Use this Skill to upload the file to OSS and get a direct link to share.

Quick Start

Upload the local file named 'my-document.pdf' to cloud storage and provide a public link.

Frequently Asked Questions about oss-upload-online-access

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload a local file to Aliyun OSS or Tencent COS and get a public URL?

To upload a local file to Aliyun OSS or Tencent COS and get a public URL, configure your credentials via environment variables or a local JSON file. The process handles content type detection and verifies post-upload accessibility to return a shareable link.

Can I upload files directly from a URL to cloud storage?

Yes, you can upload files directly from a URL to cloud storage. The tool fetches the remote file and transfers it to Aliyun OSS or Tencent COS, automatically detecting content type and generating a publicly accessible URL for sharing.

What configuration is required to use OSS or COS for file sharing?

Using OSS or COS for file sharing requires configuring your credentials and bucket details through either environment variables or a local JSON file. This setup authorizes the tool to access your cloud storage, upload files, and generate public access URLs.

Does the upload process verify if a file is publicly accessible after uploading to OSS or COS?

Yes, the upload process verifies post-upload accessibility after uploading a file to OSS or COS. It checks that the uploaded file meets size constraints and content type requirements, ensuring the generated public URL is valid and accessible for sharing.

What are the file size constraints or limitations when uploading to cloud object storage?

When uploading to cloud object storage, the tool enforces specific file size constraints and handles content type detection automatically. It also performs post-upload accessibility verification to ensure the generated public URL works correctly before returning it to you.