Upload data files using the OSS console

Updated at:

The Object Storage Service (OSS) console supports uploading files up to 5 GB. To import data files that are 5 GB or smaller into a Graph Database (GDB) instance, you must first upload them to an OSS bucket. You can then import the data from the bucket into the GDB instance. This topic describes how to upload data files to an OSS bucket.

Prerequisites

  • You have created a bucket in the same region and zone as the destination GDB instance. For more information, see Create a bucket in the console.

  • You have prepared the CSV data files for import. Both the edge files and point files must be 5 GB or smaller. For more information about data file requirements, see Preparations.

Procedure

  1. Log on to the OSS console.
  2. In the navigation pane on the left, click Buckets, and then click the name of the target bucket.
  3. In the navigation pane on the left, click Files, and then click Upload File.
  4. In the Upload File panel, configure the following parameters.
    ParameterDescription
    Upload toSet the storage path for the file after it is uploaded to OSS.
    • Current Folder: Upload the file to the current folder.
    • Specify Directory: Upload the file to a specified folder. You must enter a folder name. If the folder does not exist, OSS automatically creates the folder and uploads the file to it.
    File ACLSelect the access control list (ACL) for the file.
    • Inherit from Bucket: The file inherits the ACL of the bucket.
    • Private (Recommended): Only the file owner has read and write permissions. Other users cannot access the file.
    • Public Read: The file owner has read and write permissions. All other users, including anonymous users, have read-only permissions. This may cause data leaks and an increase in fees. Use this option with caution.
    • Public Read/Write: All users, including anonymous users, have read and write permissions. This may cause data leaks and an increase in fees. If malicious users write illegal information to the file, your legal rights may be infringed. Do not grant public read/write permissions except for specific scenarios.

    For more information about object ACLs, see Object ACLs.

    Files to UploadSelect the files or folders to upload.

    Click Scan Files or Scan Folders to select local files or folders. You can also drag the target files or folders to the upload area.

    If a folder contains files that you do not want to upload, click Remove to the right of the file to remove it from the list.

    Important
    • If you upload a file that has the same name as an existing file in the bucket, the existing file is overwritten.
    • If you drag and drop a folder to upload, OSS retains all files and subfolders within that folder.
    • During the upload, do not refresh or close the page. Otherwise, the upload task is interrupted and the list is cleared.
  5. Click Upload File.
    On the Uploads tab, you can view the upload progress of each file. After the upload is complete, you can view information such as the file name, size, and storage class in the destination path.