aliyun-oss-upload-url

Upload local files to Aliyun OSS and return public share URLs.

Updated Sep 4, 2025
One-click install
npx skills add https://github.com/ykai55/dotfiles --skill aliyun-oss-upload-url
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aliyun-oss-upload-url
Source: https://github.com/ykai55/dotfiles/tree/main/opencode/skills/aliyun-oss-upload-url
Command: npx skills add https://github.com/ykai55/dotfiles --skill aliyun-oss-upload-url

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users upload a local file to Aliyun OSS and immediately obtain an externally reachable URL for sharing or browser access, without manually tracking upload and URL-building details.

Core Features & Use Cases

  • Upload a local file to Aliyun OSS: Uploads with aliyun oss cp to a default bucket (oss://lllw-qrcodes) using a UUID-based object name while preserving the original extension when present.
  • Returns the correct public share URL: Produces the browser-facing URL format https://qrcodes.lllw.cc/<object> for the default bucket instead of the default OSS endpoint.
  • Guards against oversize uploads: Refuses files larger than 50 MiB (52428800 bytes) and verifies upload completion via aliyun oss stat.
  • Supports signed URL fallback: Uses aliyun oss sign when the bucket/object is not public, or prompts the user before changing ACL.

Quick Start

Upload a file from my machine to Aliyun OSS and return a shareable external URL using the default bucket, enforcing the 50 MiB size limit and confirming the object exists after upload.

Frequently Asked Questions about aliyun-oss-upload-url

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

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

Uploading a local file to Aliyun OSS generates a public shareable URL using the aliyun oss cp command. The system uses a UUID object name and returns a browser-facing URL formatted as https://qrcodes.lllw.cc/<object>.

Does Aliyun OSS CLI upload support file size limits and validation?

Yes, Aliyun OSS CLI uploads enforce a 50 MiB maximum file size limit and verify upload completion using the aliyun oss stat command to confirm the object exists in the bucket.

How do I generate a signed URL for a non-public object in Aliyun OSS?

To generate a signed URL for a non-public object in Aliyun OSS, use the aliyun oss sign command. This provides temporary external access without changing the bucket's public ACL.

Can I preserve the original file extension when uploading to Aliyun OSS?

Yes, uploading to Aliyun OSS preserves the original file extension by appending it to a UUID-based object name, ensuring the file type remains identifiable in the generated public endpoint.

What is the best way to automate file uploads to Aliyun OSS in CLI workflows?

The best way to automate file uploads to Aliyun OSS in CLI workflows is by integrating the aliyun oss cp command with UUID naming, size validation, and stat verification to ensure reliable asset publishing.

Why does my Aliyun OSS upload return a custom domain URL instead of the default endpoint?

An Aliyun OSS upload returns a custom domain URL like https://qrcodes.lllw.cc/<object> because the system builds the correct public endpoint for the default bucket instead of returning the default OSS endpoint.