All Products
Search
Document Center

Elastic Compute Service:Upload and download files on the instance details page

Last Updated:Apr 16, 2025

You can upload files from or download files to your local computer through Elastic Compute Service (ECS) console, without connecting to instances. This method also supports the file uploads and downloads for instances without a public IP address.

Important

Take note of the following file size limits:

  • Upload a file: The file size limit is 500 MB.

  • Download a file: The file size limit is 500 MB for Linux instances and 100 MB for Windows instances.

Billing

  • Upload a file: This can be performed for free.

  • Download a file: This involves two types of fees:

    1. The file needs to be temporarily stored in an Object Storage Service (OSS) bucket, so you are charged storage fees.

    2. Once you download the file with the Temporary Download Link, you are charged data transfer fees.

Prerequisites

  • The ECS instance whose files you want to upload or download is in the Running state.

  • If you use a Resource Access Management (RAM) user, make sure the following permissions are granted to it:

    • AliyunOSSFullAccess: management permissions on OSS.

    • AliyunOOSFullAccess: management permissions on CloudOps Orchestration Service (OOS).

Procedure

Perform the following steps to go to the feature page:

  1. Go to ECS console - Instance.

  2. In the top navigation bar, select the region and resource group of the resource that you want to manage. 地域

  3. On the Instance page, find the one where you want to upload or download files, and click its ID to go to the instance details page.

    image

  4. Choose Remote Commands/Files > Upload/Download File.

    image

Upload a file from your local computer to an ECS instance

  1. Click Upload/Download.

  2. In the Send File pane, configure the parameters described in the following table and click Upload.

    Parameter

    Description

    Type

    Select Upload File to ECS Instance.

    File

    Required. Specify the file to upload and select I agree to store the file in the temporary OSS bucket that Alibaba Cloud provides.

    Destination Path

    Required. Specify an existing absolute path on the ECS instance to save the file. By default, the following paths are used:

    • Linux: /root.

    • Windows: C:\Users\Administrator\Documents.

    File Description

    Specify a file description for easy identification.

    User

    Specify the user to which the file belongs.

    Note

    This parameter is valid only for Linux instances.

    User Group

    Specify the user group to which the file belongs.

    Note

    This parameter is valid only for Linux instances.

    Permission

    Configure permissions on the file. Configure this parameter in the same way as the chmod command.

    Default value: 0644, which indicates that the file owner has read and write permissions, while users in the same group and other users have only read permissions.

    Note

    This parameter is valid only for Linux instances.

    Overwrite

    Specify whether to overwrite the file that has the same name as the one you want to upload.

    If you turn off this parameter and a file with the same name exists in the same path, the upload fails.

    Timeout

    Set the timeout period for the file sending task. If the task does not complete when the timeout period ends, the system forcefully stops the task.

    Unit: seconds. Valid values: 10 to 86400. Default value: 60.

  3. Wait for the file transfer to complete. Then, check whether the uploaded file is in the Destination Path on the instance.

    image

  4. To locate the uploaded file's directory and path:

    1. Click the upload Task ID to access the task details.

    2. Review the DestinationDir field in the Task Information section.

    3. Check the Execution Steps and Results for the full file path.

    The file path will be used when you download the file from the instance to your local computer.

    image

Download a file from an ECS instance to your local computer

  1. Click Upload/Download.

  2. In the Send File pane, configure all the parameters described in the following table, and then click Download.

    Parameter

    Description

    Type

    Select Download File from ECS Instance.

    File

    The path of the file to download on the ECS instance. For example:

    • Linux: /root/your_file.zip.

    • Windows: C:\\Users\\Administrator\\your_file.zip (Windows requires double backslashes).

    OSS Bucket

    Select an existing OSS bucket. If you do not have one, create a bucket first.

    Important

    The OSS bucket must be in the same region as the ECS instance.

    When you download a file by using this feature, the file is first uploaded to the /aliyun_download_file directory in the selected bucket for subsequent download. After the download is complete, delete the file from the bucket to prevent additional costs. In case you forget to delete those files created during download tasks, configure an automatic deletion policy for the /aliyun_download_file directory.

  3. After the Execution Status of the download task is Successful, click Temporary Download Link in the Actions column to copy the download link, paste the download link into your browser's address bar, and then press Enter to download the file.

    Note

    The temporary download link is valid for 10 minutes.

    image