File uploading and downloading method and system
The client SDK is used to fragment files and aggregate download requests, combined with the local cache and asynchronous storage of the server, to solve the problem of low efficiency of traditional multi-threaded uploads and downloads, achieve more efficient file transfer and optimize user experience.
Patent Information
- Application Number
- CN202410696362.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-10-08
AI Technical Summary
The efficiency of traditional multi-threaded file upload and download methods is affected when the number of users and requests increases, and needs to be optimized to improve user experience.
The client SDK is used to fragment the file and upload it to the server through multi-threading. The server stores the fragmented file in a local cache and asynchronously stores it to the disk. The client SDK aggregates file download requests to improve download efficiency. , and reduce repeated range download file transfers in concurrent scenarios.
It improves the efficiency of file upload and download, optimizes user experience, and improves system performance and space utilization through dual storage and aggregation processing.
Smart Images

Figure CN118748672A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method and system for uploading and downloading files. Background Art
[0002] Currently, most systems provide general file upload and download functions. When uploading and downloading files, files are usually segmented and uploaded and downloaded through multi-threading. The multi-threading method improves the efficiency of file upload and download by improving network bandwidth utilization. However, with the increase in the number of users and requests, the efficiency of file upload and download will inevitably be affected. Therefore, the traditional multi-threading method for file upload and download operations still needs to be optimized. Summary of the invention
[0003] The technical problem to be solved by the present invention is: the present invention provides a method and system for uploading and downloading files, which improves the efficiency of uploading and downloading files and optimizes user experience.
[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0005] In a first aspect, the present invention provides a method for uploading and downloading files, comprising:
[0006] The client SDK obtains the uploaded file, performs segmentation processing on the uploaded file to obtain corresponding segmented files, and uploads the segmented files to the server in a multi-threaded manner;
[0007] The server receives the segmented file and stores the segmented file in a local cache;
[0008] The client SDK obtains file download requests at the same time, aggregates the file download requests to obtain aggregated file download requests, and sends the aggregated file download requests to the server;
[0009] The server receives and obtains the corresponding download file according to the aggregated file download request, and returns the download file to the client SDK.
[0010] The beneficial effects of the present invention are as follows: when uploading the segmented files corresponding to the uploaded files to the server in a multi-threaded manner, the server stores the segmented files in a local cache, which is different from the traditional method of directly storing the segmented files on the disk, thereby improving the uploading efficiency of the segmented files, and when subsequently obtaining the downloaded files, i.e., downloading the files, they can be directly obtained from the local cache, thereby improving the efficiency of obtaining the downloaded files, i.e., the efficiency of file downloading, and aggregation operations will be performed on the file download requests at the same time, i.e., concurrent file download requests, to obtain the downloaded files with the aggregated file download requests. Compared with the traditional method of obtaining the downloaded files one by one for the file download requests at the same time, the file download efficiency is improved and the user experience is optimized.
[0011] Optionally, the server receives the segment file, and storing the segment file in a local cache includes:
[0012] The server preferentially stores the segmented files in a local cache, and stores the segmented files in a disk in an asynchronous manner.
[0013] According to the above description, the server not only stores the shard files in the local cache, but also stores them on the disk, performing double storage of the shard files to improve the storage security of the shard files. In addition, an asynchronous method is used when storing the shard files on the disk, and there is no need to wait for the local cache to be stored before proceeding, thereby improving storage efficiency.
[0014] Optionally, the server preferentially stores the segmented files in a local cache, and stores the segmented files in a disk in an asynchronous manner, including:
[0015] Obtain the storage time and current time of the segmented file stored in the local cache, calculate the storage duration of the segmented file according to the storage time and the current time, and delete the segmented file from the local cache when the storage duration exceeds a first duration threshold.
[0016] According to the above description, a storage time limit is set for the segmented files stored in the local cache, that is, when the storage time of the locally stored segmented files exceeds the first time threshold, they will be deleted to free up storage space and improve space utilization.
[0017] Optionally, the client SDK obtains file download requests at the same time, and aggregates the file download requests, including:
[0018] Obtaining file download information for each file download request, wherein the file download information includes download range and fragment information;
[0019] When the fragment information is from the same uploaded file, determine whether there is a duplicate range in the download range. If so, use the minimum value of the download range as the starting value, use the maximum value of the download range as the boundary value, obtain a new download range according to the starting value and the boundary value, and aggregate the file download requests according to the new download range;
[0020] The server returns the downloaded file to the client SDK including:
[0021] The client SDK receives the download file and decomposes the download file according to the download range to obtain a decomposed file corresponding to each file download request.
[0022] According to the above description, for file download requests originating from the same uploaded file, if there are repeated ranges in the download range, they will be aggregated, and the maximum value of the download range will be used as the boundary value, and the minimum value of the download range will be used as the starting value to ensure the integrity of the new download range. In this way, a new download range is obtained to aggregate file download requests at the same time, so that the server obtains the downloaded file according to the new download range. That is, the server only needs to return a downloaded file of a download range to the client SDK, and does not need to return the downloaded files of the corresponding download range one by one, thereby reducing the transmission of downloaded files of repeated ranges, improving file download efficiency in concurrent scenarios, and improving the overall performance of the system. The client SDK will decompose the received downloaded files according to the download range of each file download request to ensure that each file download request can obtain the corresponding decomposed file, thereby ensuring the integrity of the file download transmission.
[0023] Optionally, when the fragment information is from the same uploaded file, determining whether the download range has a repeated range includes:
[0024] Calculate the current total number of file download requests whose shard information comes from the same uploaded file;
[0025] When the current total number does not exceed the first number threshold, directly determine whether there is a repeated range in the download range; when the current total number exceeds the first number threshold, group the current total number according to the first number threshold to obtain file download request fragment groups, and determine whether there is a repeated range in the download range in each group of file download request fragment groups.
[0026] According to the above description, it can be seen that when aggregating file download requests originating from the same uploaded file, an aggregation upper limit is set, that is, the number of file download requests aggregated each time does not exceed the first number threshold. When the current total number exceeds the first number threshold, they are grouped according to the first number threshold, and it is determined in turn whether there is a duplicate download range in the download range of each group of file download request allocation groups, and then aggregation processing is performed to avoid the file download requests after aggregation processing being too large, which affects the download efficiency.
[0027] In a second aspect, the present invention provides a system for uploading and downloading files, comprising:
[0028] The client SDK is used to obtain uploaded files, perform segmentation processing on the uploaded files to obtain corresponding segmented files, upload the segmented files to the server in a multi-threaded manner, obtain file download requests at the same time, aggregate the file download requests to obtain aggregated file download requests, and send the aggregated file download requests to the server;
[0029] The server is used to receive the segmented files, store the segmented files in a local cache, receive and obtain corresponding download files according to the aggregated file download request, and return the download files to the client SDK.
[0030] The beneficial effects of the present invention are as follows: when uploading the segmented files corresponding to the uploaded files to the server in a multi-threaded manner, the server stores the segmented files in a local cache, which is different from the traditional method of directly storing the segmented files on the disk, thereby improving the uploading efficiency of the segmented files, and when subsequently obtaining the downloaded files, i.e., downloading the files, they can be directly obtained from the local cache, thereby improving the efficiency of obtaining the downloaded files, i.e., the efficiency of file downloading, and aggregation operations will be performed on the file download requests at the same time, i.e., concurrent file download requests, to obtain the downloaded files with the aggregated file download requests. Compared with the traditional method of obtaining the downloaded files one by one for the file download requests at the same time, the file download efficiency is improved and the user experience is optimized.
[0031] Optionally, the server is specifically used for:
[0032] The segmented files are preferentially stored in the local cache, and the segmented files are asynchronously stored in the disk.
[0033] According to the above description, the server not only stores the shard files in the local cache, but also stores them on the disk, performing double storage of the shard files to improve the storage security of the shard files. In addition, an asynchronous method is used when storing the shard files on the disk, and there is no need to wait for the local cache to be stored before proceeding, thereby improving storage efficiency.
[0034] Optionally, the server is specifically used for:
[0035] Obtain the storage time and current time of the segmented file stored in the local cache, calculate the storage duration of the segmented file according to the storage time and the current time, and delete the segmented file from the local cache when the storage duration exceeds a first duration threshold.
[0036] According to the above description, a storage time limit is set for the segmented files stored in the local cache, that is, when the storage time of the locally stored segmented files exceeds the first time threshold, they will be deleted to free up storage space and improve space utilization.
[0037] Optionally, the client SDK is specifically used for:
[0038] Obtaining file download information for each file download request, wherein the file download information includes download range and fragment information;
[0039] When the fragment information is from the same uploaded file, directly determine whether the download range has a repeated range. If so, use the minimum value of the download range as the starting value, use the maximum value of the download range as the boundary value, obtain a new download range according to the starting value and the boundary value, and perform aggregation processing on the file download request according to the new download range;
[0040] The download file is received, and the download file is decomposed according to the download range to obtain a decomposed file corresponding to each file download request.
[0041] According to the above description, for file download requests originating from the same uploaded file, if there are repeated ranges in the download range, they will be aggregated, and the maximum value of the download range will be used as the boundary value, and the minimum value of the download range will be used as the starting value to ensure the integrity of the new download range. In this way, a new download range is obtained to aggregate file download requests at the same time, so that the server obtains the downloaded file according to the new download range. That is, the server only needs to return a downloaded file of a download range to the client SDK, and does not need to return the downloaded files of the corresponding download range one by one, thereby reducing the transmission of downloaded files of repeated ranges, improving file download efficiency in concurrent scenarios, and improving the overall performance of the system. The client SDK will decompose the received downloaded files according to the download range of each file download request to ensure that each file download request can obtain the corresponding decomposed file, thereby ensuring the integrity of the file download transmission.
[0042] Optionally, the client SDK is specifically used for:
[0043] Calculate the current total number of file download requests whose shard information comes from the same uploaded file;
[0044] When the current total number does not exceed the first number threshold, determine whether there is a repeated range in the download range; when the current total number exceeds the first number threshold, group the current total number according to the first number threshold to obtain file download request fragment groups, and determine whether there is a repeated range in the download range in each group of file download request fragment groups.
[0045] According to the above description, it can be seen that when aggregating file download requests originating from the same uploaded file, an aggregation upper limit is set, that is, the number of file download requests aggregated each time does not exceed the first number threshold. When the current total number exceeds the first number threshold, they are grouped according to the first number threshold, and it is determined in turn whether there is a duplicate download range in the download range of each group of file download request allocation groups, and then aggregation processing is performed to avoid the file download requests after aggregation processing being too large, which affects the download efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A flowchart of a method for uploading and downloading files provided by an embodiment of the present invention;
[0047] Figure 2 A schematic diagram of the overall process of a method for uploading and downloading files provided by an embodiment of the present invention;
[0048] Figure 3 A structural schematic diagram of a system for uploading and downloading files provided by an embodiment of the present invention.
[0049] [Description of Reference Numerals]
[0050] 1. A system for uploading and downloading files;
[0051] 2. Client SDK;
[0052] 3. Server. DETAILED DESCRIPTION
[0053] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0054] Embodiment 1
[0055] Please refer to Figure 1 to Figure 2 The present invention provides a method for uploading and downloading files, comprising the steps of:
[0056] S1. The client SDK obtains an uploaded file, slices the uploaded file to obtain corresponding slice files, and uploads the slice files to the server in a multi-threaded manner;
[0057] In this embodiment, if Figure 2 As shown, a general SDK for uploading and downloading files is provided for the client to use, that is, the client SDK. The client SDK will segment the acquired uploaded files and upload the obtained segmented files to the server in a multi-threaded manner.
[0058] S2. The server receives the segmented file and stores the segmented file in a local cache;
[0059] In this embodiment, if Figure 2 As shown, when the server receives the segmented files uploaded by the client SDK, it will store the segmented files in the local cache, which improves the upload efficiency. At the same time, the segmented files stored in the local cache can provide a fast file download function.
[0060] At this time, step S2 includes:
[0061] S21. The server preferentially stores the segmented files in a local cache, and stores the segmented files in a disk asynchronously.
[0062] In this embodiment, if Figure 2 As shown, the server stores the received segmented files not only in the local cache but also in the disk, and stores them in the local cache first, and stores them in the disk asynchronously.
[0063] At this time, step S21 includes:
[0064] S211. Obtain the storage time and current time of the segmented file stored in the local cache, calculate the storage duration of the segmented file according to the storage time and the current time, and delete the segmented file from the local cache when the storage duration exceeds a first duration threshold.
[0065] In this embodiment, if Figure 2 As shown, the storage time will be recorded for the shard files stored in the local cache, so as to calculate the storage duration of the shard files based on the storage time and the current time. For shard files whose storage duration exceeds the first duration threshold, they will be deleted from the local cache to optimize the storage space. The first duration threshold is 31 days, which can be adjusted according to the actual situation.
[0066] S3, the client SDK obtains file download requests at the same time, aggregates the file download requests to obtain aggregated file download requests, and sends the aggregated file download requests to the server;
[0067] In this embodiment, if Figure 2 As shown, file downloading is also performed through the client SDK, and the client SDK aggregates the file download requests at the same time, that is, the concurrent file download requests, and sends the aggregated file download requests to the server.
[0068] At this time, the client SDK in step S3 obtains the file download requests at the same time, and aggregates the file download requests, including:
[0069] S31, obtaining file download information of each file download request, wherein the file download information includes download range and fragment information;
[0070] S32. When the fragment information is from the same uploaded file, determine whether the download range has a repeated range. If so, use the minimum value of the download range as the starting value, use the maximum value of the download range as the boundary value, obtain a new download range according to the starting value and the boundary value, and perform aggregation processing on the file download request according to the new download range.
[0071] In this embodiment, if Figure 2 As shown, each file download request carries its own file download information, such as download range and fragment information. According to the fragment information, it can be determined whether the file download request comes from the same uploaded file. For multiple file download requests from the same uploaded file, it is determined whether there are repeated download ranges. If so, the minimum value of the download range is used as the starting value, and the maximum value of the download range is used as the boundary value. The new download range is obtained with the starting value and the boundary value, so as to aggregate the file download requests.
[0072] In a specific embodiment, file download request 1, file download request 2, and file download request 3 are all file download requests originating from the same uploaded file, and the corresponding download ranges are: [10, 100], [50, 120], [80, 150], [10, 100], [50, 120], [80, 150]. There are repeated ranges, therefore, the minimum download range value 10 is used as the starting value, and the maximum download range value 150 is used as the boundary value to obtain a new download range [10, 150]. The aggregation of file download request 1, file download request 2, and file download request 3 is implemented according to the new download range [10, 150].
[0073] At this time, when the fragment information in step S32 comes from the same uploaded file, determining whether the download range has a repeated range includes:
[0074] S321, calculating the current total number of file download requests whose shard information is derived from the same uploaded file;
[0075] S322. When the current total number does not exceed the first number threshold, directly determine whether there is a duplicate range in the download range; when the current total number exceeds the first number threshold, group the current total number according to the first number threshold to obtain file download request fragment groups, and determine whether there is a duplicate range in the download range in each group of file download request fragment groups.
[0076] In this embodiment, if Figure 2 As shown, when the fragment information originates from the same uploaded file, the current total number of fragment information originating from the same uploaded file, that is, the current total number of file download requests, will be calculated. When the current total number exceeds the first number threshold, the current total number will be grouped according to the first number threshold to obtain a file download request fragment group. For example, if the current total number is 35 and the first number threshold is 10, the file download requests will be grouped according to the number 10, which can be divided into 4 groups to obtain 4 groups of file download request fragment groups. The number of each group of file download request fragment groups is 10, 10, 10 and 5 respectively. It is determined in turn whether the download range of the file download requests in each group of file download request fragment groups has a repeated range. When the current total number does not exceed the first number threshold, there is no need to group them, and it is directly determined whether the download range of the file download requests has a repeated range. The first number threshold can be adjusted and set according to actual conditions.
[0077] S4. The server receives and obtains the corresponding download file according to the aggregated file download request, and returns the download file to the client SDK.
[0078] In this embodiment, if Figure 2 As shown, the server receives and obtains the corresponding download file according to the aggregated file download request to return to the client SDK. Since the download file received by the client SDK is the download file corresponding to the aggregated download request, the client SDK needs to decompose the download file. The specific decomposition steps are as follows:
[0079] The client SDK receives the download file and decomposes the download file according to the download range to obtain a decomposed file corresponding to each file download request.
[0080] Embodiment 2
[0081] Please refer to Figure 3The present invention provides a file upload and download system 1, including a client SDK 2 and a server 3.
[0082] The client SDK 2 is used to obtain the uploaded file, perform segmentation processing on the uploaded file to obtain the corresponding segmented file, upload the segmented file to the server 3 in a multi-threaded manner, obtain the file download request at the same time, aggregate the file download request to obtain the aggregated file download request, and send the aggregated file download request to the server 3;
[0083] The server 3 is used to receive the segmented files, store the segmented files in a local cache, receive and obtain corresponding download files according to the aggregated file download request, and return the download files to the client SDK2.
[0084] Specifically, the server 3 is used for:
[0085] The segmented files are preferentially stored in the local cache, and the segmented files are asynchronously stored in the disk.
[0086] Specifically, the server 3 is used for:
[0087] Obtain the storage time and current time of the segmented file stored in the local cache, calculate the storage duration of the segmented file according to the storage time and the current time, and delete the segmented file from the local cache when the storage duration exceeds a first duration threshold.
[0088] Specifically, the client SDK2 is used for:
[0089] Obtaining file download information for each file download request, wherein the file download information includes download range and fragment information;
[0090] When the fragment information is from the same uploaded file, directly determine whether the download range has a repeated range. If so, use the minimum value of the download range as the starting value, use the maximum value of the download range as the boundary value, obtain a new download range according to the starting value and the boundary value, and perform aggregation processing on the file download request according to the new download range;
[0091] The download file is received, and the download file is decomposed according to the download range to obtain a decomposed file corresponding to each file download request.
[0092] Specifically, the client SDK2 is used for:
[0093] Calculate the current total number of file download requests for the same uploaded file from the shard information;
[0094] When the current total number does not exceed the first number threshold, determine whether there is a repeated range in the download range; when the current total number exceeds the first number threshold, group the current total number according to the first number threshold to obtain file download request fragment groups, and determine whether there is a repeated range in the download range in each group of file download request fragment groups.
[0095] Since the system / device described in the above embodiments of the present invention is a system / device used to implement the method of the above embodiments of the present invention, a person skilled in the art can understand the specific structure and deformation of the system / device based on the method described in the above embodiments of the present invention, and thus will not be described in detail here. All systems / devices used in the method of the above embodiments of the present invention belong to the scope of protection of the present invention.
[0096] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0097] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions.
[0098] It should be noted that in the claims, any reference numerals placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In the claims enumerating several means, several of these means may be embodied by the same hardware. The use of the words first, second, third, etc., is for convenience of expression only and does not indicate any order. These words may be understood as part of the component name.
[0099] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0100] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
[0101] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include these modifications and variations.
Claims
1. A method for uploading and downloading files, characterized in that: include: The client SDK obtains the uploaded file, performs segmentation processing on the uploaded file to obtain corresponding segmented files, and uploads the segmented files to the server in a multi-threaded manner; The server receives the segmented file and stores the segmented file in a local cache; The client SDK obtains file download requests at the same time, aggregates the file download requests to obtain aggregated file download requests, and sends the aggregated file download requests to the server; The server receives and obtains the corresponding download file according to the aggregated file download request, and returns the download file to the client SDK.
2. A method for uploading and downloading files as claimed in claim 1, characterized in that: The server receives the segment file, and stores the segment file in the local cache, including: The server preferentially stores the segmented files in a local cache, and stores the segmented files in a disk in an asynchronous manner.
3. A method for uploading and downloading files as claimed in claim 2, characterized in that: The server preferentially stores the segmented files in a local cache, and stores the segmented files in a disk in an asynchronous manner, including: Obtain the storage time and current time of the segmented file stored in the local cache, calculate the storage duration of the segmented file according to the storage time and the current time, and delete the segmented file from the local cache when the storage duration exceeds a first duration threshold.
4. A method for uploading and downloading files as claimed in claim 1, characterized in that: The client SDK obtains the file download requests at the same time, and performs aggregation processing on the file download requests, including: Obtaining file download information for each file download request, wherein the file download information includes download range and fragment information; When the fragment information is from the same uploaded file, determine whether there is a duplicate range in the download range. If so, use the minimum value of the download range as the starting value, use the maximum value of the download range as the boundary value, obtain a new download range according to the starting value and the boundary value, and aggregate the file download requests according to the new download range; The server returns the downloaded file to the client SDK including: The client SDK receives the download file and decomposes the download file according to the download range to obtain a decomposed file corresponding to each file download request.
5. A method for uploading and downloading files as claimed in claim 4, characterized in that: When the fragment information is from the same uploaded file, determining whether the download range has a repeated range includes: Calculate the current total number of file download requests whose shard information comes from the same uploaded file; When the current total number does not exceed the first number threshold, directly determine whether there is a repeated range in the download range; when the current total number exceeds the first number threshold, group the current total number according to the first number threshold to obtain file download request fragment groups, and determine whether there is a repeated range in the download range in each group of file download request fragment groups.
6. A system for uploading and downloading files, characterized in that: include: The client SDK is used to obtain uploaded files, perform segmentation processing on the uploaded files to obtain corresponding segmented files, upload the segmented files to the server in a multi-threaded manner, obtain file download requests at the same time, aggregate the file download requests to obtain aggregated file download requests, and send the aggregated file download requests to the server; The server is used to receive the segmented files, store the segmented files in a local cache, receive and obtain corresponding download files according to the aggregated file download request, and return the download files to the client SDK.
7. A file upload and download system as claimed in claim 6, characterized in that: The server is specifically used for: The segmented files are preferentially stored in the local cache, and the segmented files are asynchronously stored in the disk.
8. A file upload and download system as claimed in claim 7, characterized in that: The server is specifically used for: Obtain the storage time and current time of the segmented file stored in the local cache, calculate the storage duration of the segmented file according to the storage time and the current time, and delete the segmented file from the local cache when the storage duration exceeds a first duration threshold.
9. A file upload and download system as claimed in claim 6, characterized in that: The client SDK is specifically used for: Obtaining file download information for each file download request, wherein the file download information includes download range and fragment information; When the fragment information is from the same uploaded file, directly determine whether the download range has a repeated range. If so, use the minimum value of the download range as the starting value, use the maximum value of the download range as the boundary value, obtain a new download range according to the starting value and the boundary value, and perform aggregation processing on the file download request according to the new download range; The download file is received, and the download file is decomposed according to the download range to obtain a decomposed file corresponding to each file download request.
10. A file upload and download system as claimed in claim 9, characterized in that: The client SDK is specifically used for: Calculate the current total number of file download requests whose shard information comes from the same uploaded file; When the current total number does not exceed the first number threshold, determine whether there is a repeated range in the download range; when the current total number exceeds the first number threshold, group the current total number according to the first number threshold to obtain file download request fragment groups, and determine whether there is a repeated range in the download range in each group of file download request fragment groups.
Citation Information
Cited By
Multi-level cache and file batch downloading method and system and storage medium
CN120201089A
A multi-level cache and file batch downloading method, system and storage medium
CN120201089B
