# agc-cloudstorage-codelab-quickapp **Repository Path**: appgallery_connect/agc-cloudstorage-codelab-quickapp ## Basic Information - **Project Name**: agc-cloudstorage-codelab-quickapp - **Description**: This repository including all of exsiting demos of AppGallery Connect Service developed by quickapp. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-27 - **Last Updated**: 2021-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # QuickAppDemo-AGCCloudStorageJavaScriptSDK ## Contents * [Introduction](#introduction) * [Supported Environments](#supported-environments) * [Procedure](#procedure) ## Introduction This demo demonstrates an example of using the SDK to store pictures, videos, audio, or other user-generated files. For details about the SDK, please refer to https://developer.huawei.com/consumer/cn/doc/development/AppGallery-connect-Guides/agc-get-started. Getting Started For more development details, please refer to the following link: Development Guide: https://developer.huawei.com/consumer/cn/doc/development/AppGallery-connect-Guides/agc-get-started API References: https://developer.huawei.com/consumer/cn/doc/development/AppGallery-connect-References/cloudstroage ## Procedure 1. Activate cloud storage service: The cloud storage service is not activated by default. You need to manually activate the cloud storage service in AGC. 2. New storage instance: After opening the cloud storage service, AGC will automatically create a default storage instance. If you want to store application system data and user data separately, you can create a new storage instance yourself. 3.Copy all properties in the agconnectconfig object in Project Settings > SDK code snippets to“ agConnectConfig.js ”under the agconnectconfig object of the profile, and under the "cloud storage" tab, add "default_storage"to set the default storage instance. 4. Integrated SDK: If you need to use cloud storage-related functions in the application client, you must integrate the cloud storage client SDK. 5. Initialize the cloud storage: Before the application client uses the cloud storage, you need to initialize the cloud storage and specify the storage instance used by the client. 6. File management: The application client can call the API of the cloud storage SDK to perform operations such as uploading files, downloading files, deleting files, and modifying file metadata. ## Supported Environments Google Chrome 73 or later version is recommended.