A file upload method and device
A file upload and file technology, applied in the field of communication, can solve problems such as slow speed, memory explosion, failure and so on
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] This embodiment will describe the file upload method provided by the present invention from the perspective of the storage server, such as figure 2 As shown, the method of the present embodiment includes the following steps:
[0024] Step 201, receiving a file upload request sent by the client, where the file upload request includes complete file content;
[0025] When the client needs to upload a file, it sends a file upload request. The file upload request can be an HTTP push request, and the complete file content can be carried in the main body of the push request. The file upload device receives the file upload request sent by the client.
[0026] Step 202, parsing the file upload request, and storing the parsed data stream segment into the cache;
[0027] Step 203, when the size of the data stream segment stored in the cache reaches the preset threshold, the micro-thread in the scheduling process writes the data stream segment in the cache into the storage module...
Embodiment 2
[0057] The method described in Embodiment 1, this embodiment will give an example for further detailed description, such as image 3 As shown, the method of the present embodiment includes:
[0058] Step 301, receiving a file upload request sent by the client, where the file upload request includes complete file content;
[0059] When the client needs to upload a file, it sends a file upload request. The file upload request can be an HTTP push request, and the complete file content can be carried in the main body of the push request. The file upload device receives the file upload request sent by the client.
[0060] Step 302, parsing the file upload request and storing the parsed data stream segment into the cache;
[0061] Step 303, when the size of the data stream segment stored in the cache reaches a preset threshold, add a serial number to the data stream segment in the cache, and create a storage index;
[0062] The specific value of the preset threshold can be customi...
Embodiment 3
[0100] In order to better implement the above method, the embodiment of the present invention also provides a storage server, such as Figure 4 As shown, the storage server in this embodiment includes: a receiving unit 401, an analyzing unit 402 and a scheduling unit 403, as follows:
[0101] (1) receiving unit 401;
[0102] The receiving unit 401 is configured to receive a file upload request sent by a client, and the file upload request includes complete file content.
[0103] Specifically, the file upload request may be an HTTP push request, and the complete file content may be carried in the body of the push request.
[0104] (2) analysis unit 402;
[0105] A parsing unit 402, configured to parse the file upload request, and store the parsed data stream segments into the cache;
[0106] (3) scheduling unit 403;
[0107]The dispatching unit 403 is configured to, when the size of the data stream fragments stored in the cache reaches a preset threshold, the micro-thread i...
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