File uploading method and device, terminal, server and readable storage medium
A file upload and server technology, applied in the field of computer vision, can solve problems such as long upload time, waste of traffic, complex terminal business logic, etc., and achieve the effect of realizing service, reducing data volume, and saving traffic
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] figure 1 It is a flow chart of a file uploading method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case where a terminal uploads a file to a server. The method can be executed by a file uploading device, which can be implemented by hardware and / or software Composition, and generally integrated in the terminal, specifically includes the following operations:
[0047] S110. Fragment the file to be uploaded to obtain multiple fragment data.
[0048] In this embodiment, the file to be uploaded is generally relatively large, and the file needs to be uploaded in pieces. Files to be uploaded include but are not limited to video files, audio files, documents, etc. Optionally, the terminal divides the file into multiple pieces of data according to piece information, and the piece information includes piece size and number of pieces. Optionally, the fragmentation information can be obtained from the server first, or set in advance. ...
Embodiment 2
[0062] This embodiment is further optimized on the basis of the optional implementation manners of the foregoing embodiments. Optionally, optimize the operation "upload the fragment data corresponding to the current fragment data information to be uploaded to the server" to "obtain fragment data upload methods from the server, and the fragment data upload methods include serial upload or parallel upload method; according to the fragment data upload method, upload the fragment data corresponding to the fragment data information to be uploaded to the server", so that the terminal does not need to determine the fragment data upload method by itself, further reducing the business logic of the terminal.
[0063] figure 2 It is a flow chart of a file upload method provided by Embodiment 2 of the present invention, such as figure 2 As shown, the method provided in this embodiment includes the following operations:
[0064] S210. Fragment the file to be uploaded to obtain multiple...
Embodiment 3
[0077] image 3 It is a flow chart of a file upload method provided by Embodiment 3 of the present invention. The embodiments of the present invention are optimized on the basis of the technical solutions of the foregoing embodiments. Optionally, the operation "upload the fragment data corresponding to the current fragment data information to be uploaded to the server" is optimized to "upload the fragment data corresponding to the current fragment data information to be uploaded to the server and the fragment data corresponding The unique identifier is used for the server to determine that the fragmented data has not been uploaded according to the unique identifier, receive the fragmented data uploaded by the terminal, and return the fragment upload completion status to the terminal, so as to avoid repeatedly receiving fragmented data. combine image 3 , the method provided in this embodiment includes the following operations:
[0078] S310. Fragment the file to be uploaded...
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