File transmission method and device
A file transfer and file upload technology, applied in the Internet field, can solve the problems of low fragmentation processing efficiency and high fragmentation processing cost, and achieve the effect of reducing fragmentation processing cost, avoiding instability problems, and improving efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] The embodiment of the present invention provides a file transfer method, please refer to figure 1 , which is a schematic flowchart of Embodiment 1 of the file transfer method provided by the embodiment of the present invention. As shown in the figure, the method includes the following steps:
[0047] S101. During the running process of the browser, call the file operation interface provided by the browser to access the file.
[0048] Specifically, the JavaScript engine in the browser pre-writes the file operation interface provided by the browser. In this way, during the running of the browser, the JavaScript engine can call the file operation interface according to the file selected by the user on the browser. file to access.
[0049] In a specific implementation process, the file operation interface may be an HTML5-based file operation application programming interface (Application Programming Interface, API), such as HTMLFileAPI.
[0050] S102. Obtain a file segmen...
Embodiment 2
[0058] Based on the file transfer method provided in the first embodiment above, this embodiment provides a specific implementation manner of the file transfer method. Please refer to figure 2 , which is a schematic flowchart of Embodiment 2 of the file transfer method provided by the embodiment of the present invention. As shown in the figure, the file transfer method may include the following steps:
[0059] S201. Send a second file upload request to the server, where the second file upload request carries the identifier of the file, so that the server can detect whether there is a previously uploaded file in the file according to the identifier of the file Fragment, if there is no file fragment that has been uploaded, return a status code indicating that the file has not been uploaded.
[0060] Specifically, before sending the file fragment to the server, the JavaScript engine first sends a second file upload request to the server, and the second file upload request carri...
Embodiment 3
[0070] Based on the file transfer method provided in the first embodiment above, this embodiment provides another specific implementation manner of the file transfer method. Please refer to image 3 , which is a schematic flowchart of Embodiment 3 of the file transfer method provided by the embodiment of the present invention. As shown in the figure, the file transfer method may include the following steps:
[0071] S301. Send a third file upload request to the server, where the third file upload request carries the identifier of the file, so that the server can detect whether there is a previously uploaded file in the file according to the identifier of the file Fragment, if there is a file fragment that has been uploaded, return the identifier of the file fragment that has been uploaded.
[0072] Specifically, before sending the file fragment to the server, the JavaScript engine first sends a third file upload request to the server, and the third file upload request carries...
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