If your media files are not stored on a local server or device and must be uploaded from a public URL, you can call API operations to pull and upload the files in batches from public URLs.
Prerequisites
-
You are familiar with the supported file formats. For more information, see Supported file formats.
-
You have activated the ApsaraVideo VOD service. For more information, see Activate ApsaraVideo VOD.
Usage notes
-
Files pulled from URLs can only be uploaded to ApsaraVideo VOD storage addresses.
-
The maximum size of a single audio or video file is 5 GB.
-
File extensions are not case-sensitive. If a file has an unsupported extension, the upload fails.
Usage
Integrate a server-side SDK (recommended) or build your own HTTP or HTTPS request, then call the UploadMediaByURL operation to pull media files from a public URL and upload them to ApsaraVideo VOD storage. For more information, see Install a server-side SDK and RPC mechanism.
URL pull uploads are not immediate. After a request is submitted, the upload can take several hours or even days. This method is typically used for offline site migration.
API reference
-
UploadMediaByURL - Pulls and uploads a file from a URL.
-
GetUrlUploadInfos - Obtains information about URL-based uploads.