Method and device for achieving file uploading through SDK
A file upload and file technology, applied in the communication field, can solve problems such as development difficulties, high development costs, and low task efficiency, and achieve the effects of improving development efficiency and quality, reducing development costs, and avoiding development defects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] refer to figure 1 , shows a flow chart of steps of a method for uploading a file by an SDK according to Embodiment 1 of the present invention.
[0026] The method that the SDK of this embodiment implements file uploading is applied to a cloud storage system, and the method includes the following steps:
[0027] Step S102: receiving a file upload instruction, obtaining information about the file to be uploaded and a unified context environment for uploading the file to be uploaded.
[0028] When there is a file to be uploaded, the device for uploading the file, such as the client, will send a file upload instruction to the cloud storage server. After receiving the instruction, the cloud storage server will obtain the information of the file to be uploaded from the corresponding device, such as The location of the file to be uploaded, the file size, the location to be uploaded, and other information related to the file to be uploaded. More importantly, the cloud storage...
Embodiment 2
[0034] refer to figure 2 , shows a flow chart of steps of a method for uploading a file by an SDK according to Embodiment 2 of the present invention.
[0035] The method that the SDK of this embodiment implements file uploading is applied to a cloud storage system, and the method includes the following steps:
[0036] Step S202: Encapsulate the upload interface of the SDK.
[0037] In this embodiment, a preferred method of encapsulating the SDK upload interface includes: analyzing the file upload process of the cloud storage system, obtaining the basic functions for completing the file upload task from all file upload functions; abstracting the basic functions into application callbacks Information class, and define the member variables in the application callback information class according to the basic functions; use member variables to transfer parameters between basic functions, and determine the calling order of basic functions according to the file upload process; appl...
Embodiment 3
[0049] This embodiment uses a specific example to illustrate the method for uploading a file by the SDK of the present invention, and the method is applied to a cloud storage system.
[0050] The method that the SDK of this embodiment implements file uploading includes the following steps:
[0051] Step 1: Generate the upload interface of the SDK.
[0052] Hereinafter, the process of generating the upload interface of the SDK will be described from various aspects.
[0053] (1) Software environment requirements:
[0054] a. Development environment: android2.1 and above;
[0055] b. Required permissions: at least include the access permissions required to generate the SDK. Take the permission configuration of the android application as an example, such as:
[0056]
[0057] / / Permission to access the Internet
[0058]
[0059] "android.permission.WRITE_EXTERNAL_STORAGE" / >
[0060] / / Permission to write external memory
[0061]
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com