1# Upload/Download 2 3### Introduction 4 5This sample demonstrates how to use the upload and download interfaces to upload and download files. 6 7 8 9### Concepts 10 11**Upload and download** 12 13 Transfer files from a mobile phone to a remote server and vice versa. 14 15### Required Permissions 16 17The following permission must be declared in the **config.json** file: 18 19"reqPermissions": [{"name": "ohos.permission.INTERNET"}] 20 21### Usage Guidelines 22 231. Start the application and request for access to the remote server. A list of files on the remote server will be displayed. Select the file to download and click **download**. The file on the remote server is downloaded to the mobile phone, and the download progress is displayed. 24 252. Tap **next** to go to the upload page, and tap **upload**. The local file is uploaded to the remote server, and the upload progress is displayed. 26 27### Constraints 28 291. This sample can only be run on standard-system devices. 30 312. This sample requires DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022) to compile and run. 32 333. HTTPS is supported by default. To support HTTP, you need to add the **network** field to the **config.json** file, and set the **cleartextTraffic** attribute to **true**, that is: 34"deviceConfig": { 35 "default": { 36 "network": { 37 "cleartextTraffic": true 38 } 39 } 40} 41