[go: up one dir, main page]

CN111935227A - Method for uploading file through browser, browser and electronic equipment - Google Patents

Method for uploading file through browser, browser and electronic equipment Download PDF

Info

Publication number
CN111935227A
CN111935227A CN202010660465.5A CN202010660465A CN111935227A CN 111935227 A CN111935227 A CN 111935227A CN 202010660465 A CN202010660465 A CN 202010660465A CN 111935227 A CN111935227 A CN 111935227A
Authority
CN
China
Prior art keywords
server
browser
file
slice
target file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010660465.5A
Other languages
Chinese (zh)
Inventor
招钧允
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Qiyu Information and Technology Co Ltd
Original Assignee
Shanghai Qiyu Information and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Qiyu Information and Technology Co Ltd filed Critical Shanghai Qiyu Information and Technology Co Ltd
Priority to CN202010660465.5A priority Critical patent/CN111935227A/en
Publication of CN111935227A publication Critical patent/CN111935227A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种通过浏览器上传文件的方法、浏览器和电子设备,该方法包括:浏览器获取待上传的目标文件,对其进行切片处理得到多个切片文件;浏览器向服务器发送验证请求,以确定服务器上是否存在目标文件,并在服务器上不存在目标文件时,获取服务器上存储的切片文件信息;浏览器根据切片文件信息,向服务器发送上传请求,以将服务器未存储的切片文件发送至服务器;浏览器在目标文件对应的所有切片文件上传完成后,向服务器发送合并文件请求,以请求服务器将所有切片文件合并为目标文件。根据本发明的技术方案,能够有效提高浏览器上传文件的效率。

Figure 202010660465

The invention discloses a method for uploading files through a browser, a browser and an electronic device. The method includes: the browser obtains a target file to be uploaded, and slices it to obtain a plurality of sliced files; the browser sends verification to the server request to determine whether the target file exists on the server, and if the target file does not exist on the server, obtain the slice file information stored on the server; the browser sends an upload request to the server according to the slice file information to upload the slices not stored on the server. The file is sent to the server; after the upload of all the slice files corresponding to the target file is completed, the browser sends a merge file request to the server to request the server to merge all the slice files into the target file. According to the technical solution of the present invention, the efficiency of uploading files by the browser can be effectively improved.

Figure 202010660465

Description

通过浏览器上传文件的方法、浏览器和电子设备Method, browser and electronic device for uploading files through browser

技术领域technical field

本发明涉及计算机信息处理领域,具体而言,涉及一种通过浏览器上传文件的方法、浏览器、电子设备及计算机可读介质。The present invention relates to the field of computer information processing, in particular, to a method for uploading files through a browser, a browser, an electronic device and a computer-readable medium.

背景技术Background technique

随着浏览器技术的成熟,现在广大用户习惯在PC端或手机端使用浏览器办理各类在线业务。在用户通过浏览器办理业务时,往往需要上传文件,例如,当用户办理互联网金融业务时,该业务需要用户上传自己的身份证或其他证件,这就需要通过浏览器将该文件上传。受限于浏览器所使用的传输协议、浏览器所在的移动终端的网络传输能力,浏览器往往难以短时间内将文件上传完毕,如果浏览器上传文件期间,发生移动终端来电等影响浏览器传输数据的事件,则会造成文件上传失败。With the maturity of browser technology, the majority of users are now accustomed to using browsers on PCs or mobile phones to handle various online services. When a user handles a business through a browser, it is often necessary to upload a file. For example, when a user handles an Internet financial business, the business requires the user to upload his or her ID card or other credentials, which requires uploading the file through the browser. Limited by the transmission protocol used by the browser and the network transmission capability of the mobile terminal where the browser is located, it is often difficult for the browser to upload the file in a short period of time. data events, the file upload will fail.

因此,需要一种新的技术方案,来确保浏览器可以快速、完整地实现文件上传。Therefore, a new technical solution is required to ensure that the browser can quickly and completely realize the file upload.

发明内容SUMMARY OF THE INVENTION

本发明旨在确保浏览器可以快速、完整地实现文件上传。The present invention aims to ensure that the browser can quickly and completely realize file uploading.

为了解决上述技术问题,本发明第一方面提出一种通过浏览器上传文件的方法,所述方法包括:浏览器获取待上传的目标文件,对其进行切片处理得到多个切片文件;所述浏览器向服务器发送验证请求,以确定所述服务器上是否存在所述目标文件,并在所述服务器上不存在所述目标文件时,获取所述服务器上存储的切片文件信息;所述浏览器根据所述切片文件信息,向所述服务器发送上传请求,以将所述服务器未存储的切片文件发送至所述服务器;所述浏览器在所述目标文件对应的所有切片文件上传完成后,向所述服务器发送合并文件请求,以请求所述服务器将所述所有切片文件合并为所述目标文件。In order to solve the above technical problems, a first aspect of the present invention proposes a method for uploading files through a browser, the method includes: the browser obtains a target file to be uploaded, and slices it to obtain a plurality of sliced files; the browsing The browser sends a verification request to the server to determine whether the target file exists on the server, and when the target file does not exist on the server, obtains slice file information stored on the server; For the slice file information, an upload request is sent to the server to send the slice files not stored by the server to the server; the browser sends an upload request to the server after uploading all slice files corresponding to the target file. The server sends a merge file request to request the server to merge all the slice files into the target file.

根据本发明的一种优选实施方式,在所述对其进行切片处理得到多个切片文件之前,还包括:所述浏览器根据所述目标文件的大小,计算每个切片文件的大小。According to a preferred embodiment of the present invention, before the slicing process is performed to obtain a plurality of slicing files, the method further includes: calculating, by the browser, the size of each slicing file according to the size of the target file.

根据本发明的一种优选实施方式,在所述对其进行切片处理得到多个切片文件之前,还包括:所述浏览器检测当前的网络传输速度,根据所述网络传输速度的快慢计算每个切片文件的大小。According to a preferred embodiment of the present invention, before the slicing process is performed to obtain a plurality of slicing files, the method further includes: the browser detects the current network transmission speed, and calculates each transmission speed according to the speed of the network transmission speed. The size of the slice file.

根据本发明的一种优选实施方式,所述浏览器向服务器发送验证请求,包括:所述浏览器根据所述目标文件的内容计算所述目标文件的唯一标识,根据所述唯一标识生成验证请求,以供所述服务器根据所述唯一标识查找所述目标文件;所述浏览器根据所述切片文件信息,向所述服务器发送上传请求,包括:所述浏览器根据所述目标文件的唯一标识生成所述上传请求,以供所述服务器按所述唯一标识选择存储空间来存储接收的切片文件。According to a preferred embodiment of the present invention, sending the verification request by the browser to the server includes: calculating, by the browser, a unique identifier of the target file according to the content of the target file, and generating the verification request according to the unique identifier , so that the server can find the target file according to the unique identifier; the browser sends an upload request to the server according to the slice file information, including: the browser according to the unique identifier of the target file The upload request is generated for the server to select a storage space to store the received slice file according to the unique identifier.

根据本发明的一种优选实施方式,所述浏览器根据所述切片文件信息,向所述服务器发送上传请求,包括:所述浏览器根据预设顺序向所述服务器上传切片文件,在页面刷新或关闭时停止上传并记录上传进度,以及在所述页面刷新后或重新打开后根据所述上传进度自动选择切片文件继续上传。According to a preferred embodiment of the present invention, the browser sends an upload request to the server according to the slice file information, including: the browser uploads the slice file to the server according to a preset sequence, and refreshes the page when the page is refreshed. Or stop uploading and record the upload progress when it is closed, and automatically select slice files to continue uploading according to the upload progress after the page is refreshed or reopened.

根据本发明的一种优选实施方式,所述浏览器获取待上传的目标文件,包括:所述浏览器识别所述目标文件对应的业务,根据所述业务对文件大小的要求,压缩所述目标文件。According to a preferred embodiment of the present invention, acquiring the target file to be uploaded by the browser includes: the browser identifying the service corresponding to the target file, and compressing the target file according to the file size requirement of the service document.

根据本发明的一种优选实施方式,所述浏览器识别所述目标文件对应的业务,包括:所述浏览器从当前页面中识别所述业务,或根据所述目标文件的内容识别所述业务。According to a preferred embodiment of the present invention, identifying the service corresponding to the target file by the browser includes: the browser identifying the service from the current page, or identifying the service according to the content of the target file .

根据本发明的一种优选实施方式,在所述浏览器在所述目标文件对应的所有切片文件上传完成后,向所述服务器发送合并文件请求之前,还包括:所述浏览器统计所述服务器上存储切片文件的数量以及本次上传切片文件的数量,并在所述服务器上存储切片文件的数量与本次上传切片文件的数量之和等于切片处理得到所有切片文件的数量时,确定所述所有切片文件上传完成。According to a preferred embodiment of the present invention, before the browser sends a merge file request to the server after uploading all slice files corresponding to the target file is completed, the method further includes: the browser counts the server The number of slice files stored on the server and the number of slice files uploaded this time, and when the sum of the number of slice files stored on the server and the number of slice files uploaded this time is equal to the number of all slice files obtained by slicing processing, determine the All slice files are uploaded.

为了解决上述技术问题,本发明第二方面提出一种浏览器,包括:切片模块,获取待上传的目标文件,对其进行切片处理得到多个切片文件;验证模块,向服务器发送验证请求,以确定所述服务器上是否存在所述目标文件,并在所述服务器上不存在所述目标文件时,获取所述服务器上存储的切片文件信息;上传模块,根据所述切片文件信息,向所述服务器发送上传请求,以将所述服务器未存储的切片文件发送至所述服务器;合并模块,在所述目标文件对应的所有切片文件上传完成后,向所述服务器发送合并文件请求,以请求所述服务器将所述所有切片文件合并为所述目标文件。In order to solve the above technical problems, a second aspect of the present invention provides a browser, comprising: a slicing module, which obtains a target file to be uploaded, and performs slicing processing on it to obtain a plurality of slicing files; a verification module, which sends a verification request to a server to Determine whether the target file exists on the server, and when the target file does not exist on the server, obtain slice file information stored on the server; upload module, according to the slice file information, to the The server sends an upload request to send the slice files not stored by the server to the server; the merging module, after all the slice files corresponding to the target file are uploaded, sends a merge file request to the server to request all the slice files corresponding to the target file. The server merges all the slice files into the target file.

根据本发明的一种优选实施方式,所述切片模块根据所述目标文件的大小,计算每个切片文件的大小。According to a preferred embodiment of the present invention, the slicing module calculates the size of each slicing file according to the size of the target file.

根据本发明的一种优选实施方式,所述切片模块检测当前的网络传输速度,根据所述网络传输速度的快慢计算每个切片文件的大小。According to a preferred embodiment of the present invention, the slicing module detects the current network transmission speed, and calculates the size of each slice file according to the speed of the network transmission speed.

根据本发明的一种优选实施方式,所述验证模块根据所述目标文件的内容计算所述目标文件的唯一标识,根据所述唯一标识生成验证请求,以供所述服务器根据所述唯一标识查找所述目标文件;所述上传模块根据所述目标文件的唯一标识生成所述上传请求,以供所述服务器按所述唯一标识选择存储空间来存储接收的切片文件。According to a preferred embodiment of the present invention, the verification module calculates the unique identifier of the target file according to the content of the target file, and generates a verification request according to the unique identifier, so that the server can search according to the unique identifier the target file; the uploading module generates the upload request according to the unique identifier of the target file, so that the server can select a storage space to store the received slice file according to the unique identifier.

根据本发明的一种优选实施方式,所述上传模块根据预设顺序向所述服务器上传切片文件,在页面刷新或关闭时停止上传并记录上传进度,以及在所述页面刷新后或重新打开后根据所述上传进度自动选择切片文件继续上传。According to a preferred embodiment of the present invention, the uploading module uploads the slice files to the server according to a preset sequence, stops uploading and records the upload progress when the page is refreshed or closed, and after the page is refreshed or reopened The slice file is automatically selected according to the upload progress to continue uploading.

根据本发明的一种优选实施方式,还包括:识别模块,识别所述目标文件对应的业务;压缩模块,根据所述业务对文件大小的要求,压缩所述目标文件。According to a preferred embodiment of the present invention, it further comprises: an identification module, which identifies the service corresponding to the target file; and a compression module, which compresses the target file according to the file size requirement of the service.

根据本发明的一种优选实施方式,所述识别模块从当前页面中识别所述业务,或根据所述目标文件的内容识别所述业务。According to a preferred embodiment of the present invention, the identifying module identifies the service from the current page, or identifies the service according to the content of the target file.

根据本发明的一种优选实施方式,所述上传模块统计所述服务器上存储切片文件的数量以及本次上传切片文件的数量,并在所述服务器上存储切片文件的数量与本次上传切片文件的数量之和等于切片处理得到所有切片文件的数量时,确定所述所有切片文件上传完成。According to a preferred embodiment of the present invention, the uploading module counts the number of slice files stored on the server and the number of slice files uploaded this time, and stores the number of slice files on the server and the number of slice files uploaded this time. When the sum of the number is equal to the number of all the slice files obtained by the slice process, it is determined that the upload of all the slice files is completed.

为了解决上述技术问题,本发明第三方面提出一种电子设备,其包括处理器以及存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器执行上述的方法。In order to solve the above technical problem, a third aspect of the present invention provides an electronic device comprising a processor and a memory storing computer-executable instructions, the computer-executable instructions, when executed, cause the processor to perform the above-mentioned method.

为了解决上述技术问题,本发明第四方面提出一种计算机可读存储介质,该所述计算机可读存储介质存储一个或多个程序,当所述一个或多个程序被处理器执行时,实现上述的方法。In order to solve the above technical problem, a fourth aspect of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, realizes the above method.

由于本发明在文件上传前首先对文件进行切片处理,并通过向服务器发送验证请求来确认服务器上当前是否存储了该文件,如果服务器已存储该文件则本次上传执行完毕,实现“秒传”,如果服务器未存储该文件则进一步确认服务器上存储的切片信息,服务器已存储的切片则不需上传,只需上传服务器未存储的切片即可,待所有切片上传完成后请求服务器合并为完整文件,由于切片文件体积较小,即使本次未能实现全部切片上传,仍然能实现部分切片的上传,剩余切片待下次上传即可,相当于实现了“断点续传”,由于每次上传的切片总体积往往小于完整文件体积,因此变相加快了上传效率。Because the present invention first slices the file before uploading the file, and confirms whether the file is currently stored on the server by sending a verification request to the server, if the server has stored the file, the uploading is completed, and the "second upload" is realized. , if the file is not stored on the server, further confirm the slice information stored on the server. The slices that have been stored on the server do not need to be uploaded. You only need to upload the slices that are not stored on the server. After all the slices are uploaded, request the server to merge them into a complete file. , due to the small size of the slice file, even if the upload of all slices cannot be realized this time, the upload of some slices can still be realized, and the remaining slices can be uploaded next time, which is equivalent to realizing "resuming the upload from a breakpoint". The total size of the slices is often smaller than the full file size, so the upload efficiency is accelerated in disguise.

附图说明Description of drawings

为了使本发明所解决的技术问题、采用的技术手段及取得的技术效果更加清楚,下面将参照附图详细描述本发明的具体实施例。但需声明的是,下面描述的附图仅仅是本发明的示例性实施例的附图,对于本领域的技术人员来讲,在不付出创造性劳动的前提下,可以根据这些附图获得其他实施例的附图。In order to make the technical problems solved by the present invention, the technical means adopted and the technical effects obtained more clearly, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it should be noted that the drawings described below are only drawings of exemplary embodiments of the present invention, and for those skilled in the art, other implementations can be obtained according to these drawings without any creative effort. example attached.

图1是根据本发明的一个实施例的通过浏览器上传文件的方法的流程图;1 is a flowchart of a method for uploading a file through a browser according to an embodiment of the present invention;

图2是根据本发明的一个实施例的通过浏览器上传文件的方法的流程图;2 is a flowchart of a method for uploading a file through a browser according to an embodiment of the present invention;

图3是根据本发明的一个实施例的通过浏览器上传文件的方法的流程图;3 is a flowchart of a method for uploading a file through a browser according to an embodiment of the present invention;

图4是根据本发明的一个实施例的浏览器的框图;4 is a block diagram of a browser according to one embodiment of the present invention;

图5是根据本发明的一个实施例的浏览器的框图;5 is a block diagram of a browser according to one embodiment of the present invention;

图6是根据本发明的一个实施例的浏览器的工作示意图;Fig. 6 is a working schematic diagram of a browser according to an embodiment of the present invention;

图7是根据本发明的一个实施例的电子设备的框图;7 is a block diagram of an electronic device according to an embodiment of the present invention;

图8是根据本发明的一个实施例的计算机可读存储介质的示意图。8 is a schematic diagram of a computer-readable storage medium according to one embodiment of the present invention.

具体实施方式Detailed ways

现在将参考附图来更加全面地描述本发明的示例性实施例,虽然各示例性实施例能够以多种具体的方式实施,但不应理解为本发明仅限于在此阐述的实施例。相反,提供这些示例性实施例是为了使本发明的内容更加完整,更加便于将发明构思全面地传达给本领域的技术人员。Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings, although each exemplary embodiment can be embodied in various specific forms, it should not be construed that the invention is limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and fully convey the inventive concept to those skilled in the art.

在符合本发明的技术构思的前提下,在某个特定的实施例中描述的结构、性能、效果或者其他特征可以以任何合适的方式结合到一个或更多其他的实施例中。The structures, performances, effects or other features described in a particular embodiment may be combined into one or more other embodiments in any suitable manner under the premise of conforming to the technical concept of the present invention.

在对于具体实施例的介绍过程中,对结构、性能、效果或者其他特征的细节描述是为了使本领域的技术人员对实施例能够充分理解。但是,并不排除本领域技术人员可以在特定情况下,以不含有上述结构、性能、效果或者其他特征的技术方案来实施本发明。In the description of specific embodiments, detailed descriptions of structures, performances, effects or other features are provided to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can implement the present invention with technical solutions that do not contain the above-mentioned structures, performances, effects or other features under specific circumstances.

附图中的流程图仅是一种示例性的流程演示,不代表本发明的方案中必须包括流程图中的所有的内容、操作和步骤,也不代表必须按照图中所显示的的顺序执行。例如,流程图中有的操作/步骤可以分解,有的操作/步骤可以合并或部分合并,等等,在不脱离本发明的发明主旨的情况下,流程图中显示的执行顺序可以根据实际情况改变。The flowchart in the accompanying drawing is only an exemplary process demonstration, which does not mean that the solution of the present invention must include all the contents, operations and steps in the flowchart, nor does it mean that it must be performed in the order shown in the figure. . For example, some operations/steps in the flowchart can be decomposed, some operations/steps can be combined or partially combined, etc. The execution order shown in the flowchart can be based on actual conditions without departing from the spirit of the present invention. Change.

附图中的框图一般表示的是功能实体,并不一定必然与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The block diagrams in the drawings generally represent functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices entity.

各附图中相同的附图标记表示相同或类似的元件、组件或部分,因而下文中可能省略了对相同或类似的元件、组件或部分的重复描述。还应理解,虽然本文中可能使用第一、第二、第三等表示编号的定语来描述各种器件、元件、组件或部分,但是这些器件、元件、组件或部分不应受这些定语的限制。也就是说,这些定语仅是用来将一者与另一者区分。例如,第一器件亦可称为第二器件,但不偏离本发明实质的技术方案。此外,术语“和/或”、“及/或”是指包括所列出项目中的任一个或多个的所有组合。The same reference numerals in the various drawings denote the same or similar elements, components or sections, and thus repeated descriptions of the same or similar elements, components or sections may be omitted hereinafter. It should also be understood that, although first, second, third, etc., numbered attributes may be used herein to describe various means, elements, components or sections, these means, elements, components or sections should not be limited by these attributes . That is, these attributives are only used to distinguish one from the other. For example, the first device may also be referred to as the second device without departing from the technical solution of the present invention. Additionally, the terms "and/or", "and/or" are meant to include all combinations of any one or more of the listed items.

本发明在目标文件上传之前,首先对目标文件进行切片处理,并通过发送验证请求来确认服务器是否存储了该文件,如果服务器已存储目标文件则本次上传执行完毕,实现“秒传”,如果服务器未存储目标文件,则进一步确认服务器上存储的切片文件,只上传服务器未存储的切片文件,服务器已存储的切片文件则不需上传,待所有切片文件上传完成后请求服务器合并为完整文件,由于切片文件体积较小,即使本次未能实现全部切片文件上传,仍然能实现部分切片文件的上传,剩余切片文件待下次上传即可,相当于实现了“断点续传”,由于每次上传的切片文件总体积往往小于完整文件体积,因此变相加快了上传效率。Before uploading the target file, the present invention first performs slice processing on the target file, and confirms whether the server has stored the file by sending a verification request. If the server does not store the target file, then further confirm the slice files stored on the server, upload only the slice files that are not stored on the server, and do not need to upload the slice files that have been stored on the server. After all the slice files are uploaded, request the server to merge them into a complete file. Due to the small size of the slice files, even if all the slice files cannot be uploaded this time, some slice files can still be uploaded, and the remaining slice files can be uploaded next time, which is equivalent to the realization of "resuming the upload from a breakpoint". The total size of the sliced files uploaded in the second upload is often smaller than the size of the complete file, so the upload efficiency is accelerated in disguise.

如图1所示,本发明的一个实施例中提供了一种通过浏览器上传文件的方法,包括:As shown in FIG. 1, an embodiment of the present invention provides a method for uploading files through a browser, including:

步骤S110,浏览器获取待上传的目标文件,对其进行切片处理得到多个切片文件。Step S110, the browser obtains the target file to be uploaded, and slices it to obtain a plurality of sliced files.

在本实施例中,通过浏览器上传文件,该浏览器可以安装在PC端也可以安装在手机端,受手机网络传输能力、浏览器使用传输协议影响,浏览器上传文件可能存在速度慢、不稳定的情况。在本实施例中,对切片数量不进行限制,单个切片文件体积远小于目标文件体积,浏览器单次上传可上传一或多个切片文件。In this embodiment, files are uploaded through a browser, and the browser can be installed on a PC or a mobile phone. Affected by the network transmission capability of the mobile phone and the transmission protocol used by the browser, the uploading speed of the file by the browser may be slow and inconsistent. stable situation. In this embodiment, the number of slices is not limited, the volume of a single slice file is much smaller than the volume of the target file, and the browser can upload one or more slice files in a single upload.

步骤S120,浏览器向服务器发送验证请求,以确定服务器上是否存在目标文件,并在服务器上不存在目标文件时,获取服务器上存储的切片文件信息。Step S120, the browser sends a verification request to the server to determine whether the target file exists on the server, and when the target file does not exist on the server, obtains slice file information stored on the server.

在本实施例中,如服务器上存在目标文件,则可直接通知用户文件已上传完毕,结束本次上传操作;如服务器上没有目标文件,则需要进一步确认服务器上存储了哪些切片文件。In this embodiment, if there is a target file on the server, the user can be directly notified that the file has been uploaded, and the uploading operation ends; if there is no target file on the server, it is necessary to further confirm which slice files are stored on the server.

步骤S130,浏览器根据切片文件信息,向服务器发送上传请求,以将服务器未存储的切片文件发送至服务器。Step S130, the browser sends an upload request to the server according to the slice file information, so as to send the slice file not stored by the server to the server.

在本实施例中,如果服务器上存在部分切片文件,则本次上传仅需要上传另外一部分切片文件即可,相对于再次上传完整目标文件,效率更高。In this embodiment, if part of the slice file exists on the server, only another part of the slice file needs to be uploaded this time, which is more efficient than uploading the complete target file again.

步骤S140,浏览器在目标文件对应的所有切片文件上传完成后,向服务器发送合并文件请求,以请求服务器将所有切片文件合并为目标文件。Step S140, after uploading all slice files corresponding to the target file, the browser sends a file merge request to the server to request the server to merge all slice files into the target file.

根据本实施例的技术方案,在目标文件上传前首先进行切片处理,并通过向服务器发送验证请求来确认服务器上是否存储了目标文件,如果服务器已存储目标文件则本次上传执行完毕,实现“秒传”,如果服务器未存储目标文件则确认服务器上存储的切片信息,本次只需上传服务器未存储的切片文件即可,待所有切片文件上传完成后请求服务器合并为完整文件,由于切片文件体积较小,即使本次未能实现全部切片上传,仍然能实现部分切片的上传,剩余切片待下次上传即可,相当于实现了“断点续传”,由于每次上传的切片总体积往往小于完整文件体积,因此变相加快了上传效率。According to the technical solution of this embodiment, the slicing process is first performed before the target file is uploaded, and a verification request is sent to the server to confirm whether the target file is stored on the server. "Second upload", if the server does not store the target file, confirm the slice information stored on the server. This time, you only need to upload the slice files that are not stored in the server. After all the slice files are uploaded, request the server to merge them into a complete file. The volume is small. Even if all the slices cannot be uploaded this time, some slices can still be uploaded, and the remaining slices can be uploaded next time, which is equivalent to the realization of "resuming the upload from a breakpoint", because the total volume of the slices uploaded each time It is often smaller than the complete file size, so it speeds up the upload efficiency in disguise.

如图2所示,本发明的一个实施例中提供了一种通过浏览器上传文件的方法,包括:As shown in FIG. 2, an embodiment of the present invention provides a method for uploading files through a browser, including:

步骤S210,浏览器获取待上传的目标文件,对其进行切片处理得到多个切片文件。Step S210, the browser acquires the target file to be uploaded, and slices it to obtain a plurality of sliced files.

在本实施例中,在切片处理前需要计算每个切片文件的大小:In this embodiment, the size of each slice file needs to be calculated before slice processing:

(1)浏览器根据目标文件的大小,计算每个切片文件的大小。(1) The browser calculates the size of each slice file according to the size of the target file.

在本实施例中,通常当目标文件过大时,则切片文件数量较多,以确保每次上传至少可以上传一个切片文件,如果目标文件较小,则切片为少量切片文件即可,避免切片文件数量过多导致上传次数过多,反而降低上传效率。In this embodiment, usually when the target file is too large, the number of slice files is large to ensure that at least one slice file can be uploaded each time uploading. Too many files lead to too many uploads, which reduces the upload efficiency.

(2)浏览器检测当前的网络传输速度,根据网络传输速度的快慢计算每个切片文件的大小。(2) The browser detects the current network transmission speed, and calculates the size of each slice file according to the speed of the network transmission speed.

在本实施例中,可以首先检测手机端网络传输速度,当手机网络通信能力不佳时,此时需要确保每个切片体积较小,以确保每次上传至少可以上传一个切片文件,如果网络传输速度较快,则切片为少量切片文件即可,以通过较少上传次数将切片文件上传完毕。In this embodiment, the network transmission speed of the mobile phone can be detected first. When the communication capability of the mobile phone network is poor, it is necessary to ensure that each slice is small in size, so as to ensure that at least one slice file can be uploaded for each upload. If the speed is faster, the slicing is only a small number of slicing files, so that the slicing files can be uploaded with less uploading times.

步骤S220,浏览器根据目标文件的内容计算目标文件的唯一标识,根据唯一标识生成验证请求,浏览器向服务器发送验证请求,以供服务器根据唯一标识查找目标文件,并在服务器上不存在目标文件时,获取服务器上存储的切片文件信息。Step S220, the browser calculates the unique identifier of the target file according to the content of the target file, generates a verification request according to the unique identifier, and the browser sends a verification request to the server for the server to find the target file according to the unique identifier, and the target file does not exist on the server. , get the slice file information stored on the server.

在本实施例中,该唯一标识包括但不限于哈希值,验证请求携带哈希值,则服务器根据哈希值来查询目标文件是否存在。In this embodiment, the unique identifier includes but is not limited to a hash value, and the verification request carries the hash value, and the server queries whether the target file exists according to the hash value.

步骤S230,浏览器根据切片文件信息和目标文件的唯一标识生成上传请求,以将服务器未存储的切片文件发送至服务器,服务器按唯一标识选择存储空间来存储接收的切片文件。Step S230, the browser generates an upload request according to the slice file information and the unique identifier of the target file, so as to send the slice file not stored by the server to the server, and the server selects a storage space to store the received slice file according to the unique identifier.

在本实施例中,上传请求携带目标文件的哈希值和切片文件信息,服务器收到切片文件后,可以将该切片文件存储到以哈希值命名的文件夹内,浏览器发出验证请求时,服务器可以从该文件夹内统计已上传切片文件情况。In this embodiment, the upload request carries the hash value of the target file and slice file information. After the server receives the slice file, it can store the slice file in a folder named after the hash value. When the browser sends a verification request , the server can count the uploaded slice files from this folder.

步骤S240,浏览器在目标文件对应的所有切片文件上传完成后,向服务器发送合并文件请求,以请求服务器将所有切片文件合并为目标文件。Step S240 , after uploading all slice files corresponding to the target file, the browser sends a merge file request to the server, so as to request the server to merge all slice files into the target file.

根据本实施例的技术方案,当所有切片文件上传后即可通知服务器合并文件,从而在服务器上合并为完整的目标文件。According to the technical solution of this embodiment, when all the sliced files are uploaded, the server can be notified to merge the files, so that they are merged into a complete target file on the server.

如图3所示,本发明的一个实施例中提供了一种通过浏览器上传文件的方法,包括:As shown in FIG. 3, an embodiment of the present invention provides a method for uploading files through a browser, including:

步骤S310,浏览器获取待上传的目标文件,浏览器识别目标文件对应的业务,根据业务对文件大小的要求,压缩目标文件后,对其进行切片处理得到多个切片文件。In step S310, the browser obtains the target file to be uploaded, the browser identifies the service corresponding to the target file, and according to the service's requirements on the file size, after compressing the target file, it slices it to obtain multiple slice files.

在本实施例中,在目标文件体积较大的情况下,例如,用户拍摄的身份证照片体积过大,而使用身份证的业务要求身份证照片体积较小,此时可以根据业务要求对照片进行适度压缩,在兼顾照片质量的情况下降低照片体积,有利于提升照片上传效率。识别目标文件对应业务的方式包括:In this embodiment, when the target file is large in size, for example, the ID card photo taken by the user is too large, and the business using the ID card requires the ID card photo to be small in size. Moderate compression is performed to reduce the size of the photo while taking into account the quality of the photo, which is conducive to improving the efficiency of photo uploading. The methods of identifying the business corresponding to the target file include:

(1)浏览器从当前页面中识别业务。(1) The browser identifies the service from the current page.

在本实施例中,当前页面中通常具有反映业务的内容,例如,对于互联网金融业务,则页面的文字通常体现了互联网金融业务的名称、内容、资格要求等等,通过此类内容能够识别业务。In this embodiment, the current page usually has content that reflects the business. For example, for Internet financial business, the text on the page usually reflects the name, content, qualification requirements, etc. of the Internet financial business, and the business can be identified through such content. .

(2)根据目标文件的内容识别业务。(2) Identify the service according to the content of the target file.

在本实施例中,也可以通过目标文件的内容来识别业务,例如,通过图像识别技术,可以识别出用户上传的是身份证,进而判断出身份证通常用于互联网金融业务、审批服务等业务中的身份认定,而身份认定对身份证体积通常有统一的要求,此时可根据该要求进行文件压缩。In this embodiment, the service can also be identified by the content of the target file. For example, through image recognition technology, it can be identified that the user uploads an ID card, and then it can be determined that the ID card is usually used for Internet financial services, approval services and other services The identity verification in the ID card usually has uniform requirements for the size of the ID card, and the file can be compressed according to the requirements.

步骤S320,浏览器向服务器发送验证请求,以确定服务器上是否存在目标文件,并在服务器上不存在目标文件时,获取服务器上存储的切片文件信息。Step S320, the browser sends a verification request to the server to determine whether the target file exists on the server, and when the target file does not exist on the server, obtains slice file information stored on the server.

步骤S330,浏览器根据切片文件信息,向服务器发送上传请求,以将服务器未存储的切片文件发送至服务器,具体地,浏览器根据预设顺序向服务器上传切片文件,在页面刷新或关闭时停止上传并记录上传进度,以及在页面刷新后或重新打开后根据上传进度自动选择切片文件继续上传。Step S330, the browser sends an upload request to the server according to the slice file information, so as to send the slice files not stored by the server to the server, specifically, the browser uploads the slice files to the server according to the preset sequence, and stops when the page is refreshed or closed. Upload and record the upload progress, and automatically select slice files to continue uploading according to the upload progress after the page is refreshed or reopened.

步骤S340,浏览器统计服务器上存储切片文件的数量以及本次上传切片文件的数量,并在服务器上存储切片文件的数量与本次上传切片文件的数量之和等于切片处理得到所有切片文件的数量时,确定所有切片文件上传完成。Step S340, the browser counts the number of slice files stored on the server and the number of slice files uploaded this time, and the sum of the number of slice files stored on the server and the number of slice files uploaded this time is equal to the number of all slice files obtained by slicing processing. , make sure that all slice files are uploaded.

在本实施例中,通过服务器上存储切片文件的数量、本次上传切片文件的数量、本次切片的文件总数量进行计算,可以准确地判断目标文件是否上传完毕。In this embodiment, by calculating the number of slice files stored on the server, the number of slice files uploaded this time, and the total number of files sliced this time, it can be accurately determined whether the target file has been uploaded.

步骤S350,浏览器在目标文件对应的所有切片文件上传完成后,向服务器发送合并文件请求,以请求服务器将所有切片文件合并为目标文件。Step S350, after uploading all the slice files corresponding to the target file, the browser sends a merge file request to the server, so as to request the server to merge all the slice files into the target file.

根据本实施例的技术方案,当计算出所有切片文件上传完毕后,则触发通知服务器合并目标文件。According to the technical solution of this embodiment, when it is calculated that all slice files are uploaded, the notification server is triggered to merge the target file.

本领域技术人员可以理解,实现上述实施例的全部或部分步骤被实现为由数据处理设备(包括计算机)执行的程序,即计算机程序。在该计算机程序被执行时,可以实现本发明提供的上述方法。而且,所述的计算机程序可以存储于计算机可读存储介质中,该存储介质可以是磁盘、光盘、ROM、RAM等可读存储介质,也可以是多个存储介质组成的存储阵列,例如磁盘或磁带存储阵列。所述的存储介质不限于集中式存储,其也可以是分布式存储,例如基于云计算的云存储。Those skilled in the art can understand that all or part of the steps for implementing the above embodiments are implemented as a program executed by a data processing device (including a computer), that is, a computer program. When the computer program is executed, the above-mentioned method provided by the present invention can be implemented. Moreover, the computer program can be stored in a computer-readable storage medium, which can be a readable storage medium such as a magnetic disk, an optical disk, a ROM, and a RAM, or a storage array composed of multiple storage media, such as a magnetic disk or a storage medium. tape storage array. The storage medium is not limited to centralized storage, it can also be distributed storage, such as cloud storage based on cloud computing.

下面描述本发明的装置实施例,该装置可以用于执行本发明的方法实施例。对于本发明装置实施例中描述的细节,应视为对于上述方法实施例的补充;对于在本发明装置实施例中未披露的细节,可以参照上述方法实施例来实现。The apparatus embodiments of the present invention are described below, and the apparatus can be used to execute the method embodiments of the present invention. The details described in the apparatus embodiments of the present invention should be regarded as supplements to the above method embodiments; for details not disclosed in the apparatus embodiments of the present invention, reference may be made to the above method embodiments for implementation.

如图4所示,本发明的一个实施例中提供了一种浏览器,包括:As shown in FIG. 4, an embodiment of the present invention provides a browser, including:

切片模块410,获取待上传的目标文件,对其进行切片处理得到多个切片文件。The slicing module 410 obtains the target file to be uploaded, and performs slicing processing on it to obtain a plurality of slicing files.

在本实施例中,通过浏览器上传文件,该浏览器可以安装在PC端也可以安装在手机端,受手机网络传输能力、浏览器使用传输协议影响,浏览器上传文件可能存在速度慢、不稳定的情况。在本实施例中,对切片数量不进行限制,单个切片文件体积远小于目标文件体积,浏览器单次上传可上传一或多个切片文件。In this embodiment, files are uploaded through a browser, and the browser can be installed on a PC or a mobile phone. Affected by the network transmission capability of the mobile phone and the transmission protocol used by the browser, the uploading speed of the file by the browser may be slow and inconsistent. stable situation. In this embodiment, the number of slices is not limited, the volume of a single slice file is much smaller than the volume of the target file, and the browser can upload one or more slice files in a single upload.

验证模块420,向服务器发送验证请求,以确定服务器上是否存在目标文件,并在服务器上不存在目标文件时,获取服务器上存储的切片文件信息。The verification module 420 sends a verification request to the server to determine whether the target file exists on the server, and obtains slice file information stored on the server when the target file does not exist on the server.

在本实施例中,如服务器上存在目标文件,则可直接通知用户文件已上传完毕,结束本次上传操作;如服务器上没有目标文件,则需要进一步确认服务器上存储了哪些切片文件。In this embodiment, if there is a target file on the server, the user can be directly notified that the file has been uploaded, and the uploading operation ends; if there is no target file on the server, it is necessary to further confirm which slice files are stored on the server.

上传模块430,根据切片文件信息,向服务器发送上传请求,以将服务器未存储的切片文件发送至服务器。The uploading module 430 sends an upload request to the server according to the slice file information, so as to send the slice file not stored by the server to the server.

在本实施例中,如果服务器上存在部分切片文件,则本次上传仅需要上传另外一部分切片文件即可,相对于再次上传完整目标文件,效率更高。In this embodiment, if part of the slice file exists on the server, only another part of the slice file needs to be uploaded this time, which is more efficient than uploading the complete target file again.

合并模块440,在目标文件对应的所有切片文件上传完成后,向服务器发送合并文件请求,以请求服务器将所有切片文件合并为目标文件。The merging module 440 sends a file merging request to the server after uploading all the slice files corresponding to the target file, so as to request the server to merge all the slice files into the target file.

根据本实施例的技术方案,在目标文件上传前首先进行切片处理,并通过向服务器发送验证请求来确认服务器上是否存储了目标文件,如果服务器已存储目标文件则本次上传执行完毕,实现“秒传”,如果服务器未存储目标文件则确认服务器上存储的切片信息,本次只需上传服务器未存储的切片文件即可,待所有切片文件上传完成后请求服务器合并为完整文件,由于切片文件体积较小,即使本次未能实现全部切片上传,仍然能实现部分切片的上传,剩余切片待下次上传即可,相当于实现了“断点续传”,由于每次上传的切片总体积往往小于完整文件体积,因此变相加快了上传效率。According to the technical solution of this embodiment, the slicing process is first performed before the target file is uploaded, and a verification request is sent to the server to confirm whether the target file is stored on the server. "Second upload", if the server does not store the target file, confirm the slice information stored on the server. This time, you only need to upload the slice files that are not stored in the server. After all the slice files are uploaded, request the server to merge them into a complete file. The volume is small. Even if all the slices cannot be uploaded this time, some slices can still be uploaded, and the remaining slices can be uploaded next time, which is equivalent to the realization of "resuming the upload from a breakpoint", because the total volume of the slices uploaded each time It is often smaller than the complete file size, so it speeds up the upload efficiency in disguise.

如图4所示,本发明的一个实施例中提供了一种浏览器,包括:As shown in FIG. 4, an embodiment of the present invention provides a browser, including:

切片模块410,浏览器获取待上传的目标文件,对其进行切片处理得到多个切片文件。In the slicing module 410, the browser obtains the target file to be uploaded, and performs slicing processing on the target file to obtain a plurality of slicing files.

在本实施例中,在切片处理前需要计算每个切片文件的大小:In this embodiment, the size of each slice file needs to be calculated before slice processing:

(1)根据目标文件的大小,计算每个切片文件的大小。(1) Calculate the size of each slice file according to the size of the target file.

在本实施例中,通常当目标文件过大时,则切片文件数量较多,以确保每次上传至少可以上传一个切片文件,如果目标文件较小,则切片为少量切片文件即可,避免切片文件数量过多导致上传次数过多,反而降低上传效率。In this embodiment, usually when the target file is too large, the number of slice files is large to ensure that at least one slice file can be uploaded each time uploading. Too many files lead to too many uploads, which reduces the upload efficiency.

(2)检测当前的网络传输速度,根据网络传输速度的快慢计算每个切片文件的大小。(2) Detect the current network transmission speed, and calculate the size of each slice file according to the speed of the network transmission speed.

在本实施例中,可以首先检测手机端网络传输速度,当手机网络通信能力不佳时,此时需要确保每个切片体积较小,以确保每次上传至少可以上传一个切片文件,如果网络传输速度较快,则切片为少量切片文件即可,以通过较少上传次数将切片文件上传完毕。In this embodiment, the network transmission speed of the mobile phone can be detected first. When the communication capability of the mobile phone network is poor, it is necessary to ensure that each slice is small in size, so as to ensure that at least one slice file can be uploaded for each upload. If the speed is faster, the slicing is only a small number of slicing files, so that the slicing files can be uploaded with less uploading times.

验证模块420,根据目标文件的内容计算目标文件的唯一标识,根据唯一标识生成验证请求,向服务器发送验证请求,以供服务器根据唯一标识查找目标文件,并在服务器上不存在目标文件时,获取服务器上存储的切片文件信息。The verification module 420 calculates the unique identifier of the target file according to the content of the target file, generates a verification request according to the unique identifier, and sends the verification request to the server for the server to find the target file according to the unique identifier, and obtains the target file when the target file does not exist on the server. Slice file information stored on the server.

在本实施例中,该唯一标识包括但不限于哈希值,验证请求携带哈希值,则服务器根据哈希值来查询目标文件是否存在。In this embodiment, the unique identifier includes but is not limited to a hash value, and the verification request carries the hash value, and the server queries whether the target file exists according to the hash value.

上传模块430,根据切片文件信息和目标文件的唯一标识生成上传请求,以将服务器未存储的切片文件发送至服务器,服务器按唯一标识选择存储空间来存储接收的切片文件。The uploading module 430 generates an upload request according to the slice file information and the unique identifier of the target file, so as to send the slice file not stored by the server to the server, and the server selects a storage space to store the received slice file according to the unique identifier.

在本实施例中,上传请求携带目标文件的哈希值和切片文件信息,服务器收到切片文件后,可以将该切片文件存储到以哈希值命名的文件夹内,浏览器发出验证请求时,服务器可以从该文件夹内统计已上传切片文件情况。In this embodiment, the upload request carries the hash value of the target file and slice file information. After the server receives the slice file, it can store the slice file in a folder named after the hash value. When the browser sends a verification request , the server can count the uploaded slice files from this folder.

合并模块440,在目标文件对应的所有切片文件上传完成后,向服务器发送合并文件请求,以请求服务器将所有切片文件合并为目标文件。The merging module 440 sends a file merging request to the server after uploading all the slice files corresponding to the target file, so as to request the server to merge all the slice files into the target file.

根据本实施例的技术方案,当所有切片文件上传后即可通知服务器合并文件,从而在服务器上合并为完整的目标文件。According to the technical solution of this embodiment, when all the sliced files are uploaded, the server can be notified to merge the files, so that they are merged into a complete target file on the server.

如图5所示,本发明的一个实施例中提供了一种浏览器,包括:As shown in FIG. 5, an embodiment of the present invention provides a browser, including:

切片模块510获取待上传的目标文件,识别模块520识别目标文件对应的业务,压缩模块530根据业务对文件大小的要求,压缩目标文件后,切片模块510对其进行切片处理得到多个切片文件。The slicing module 510 obtains the target file to be uploaded, the identifying module 520 identifies the service corresponding to the target file, and the compression module 530 compresses the target file according to the service's file size requirements, and the slicing module 510 slices the target file to obtain multiple slicing files.

在本实施例中,在目标文件体积较大的情况下,例如,用户拍摄的身份证照片体积过大,而使用身份证的业务要求身份证照片体积较小,此时可以根据业务要求对照片进行适度压缩,在兼顾照片质量的情况下降低照片体积,有利于提升照片上传效率。识别目标文件对应业务的方式包括:In this embodiment, when the target file is large in size, for example, the ID card photo taken by the user is too large, and the business using the ID card requires the ID card photo to be small in size. Moderate compression is performed to reduce the size of the photo while taking into account the quality of the photo, which is conducive to improving the efficiency of photo uploading. The methods of identifying the business corresponding to the target file include:

(1)识别模块520从当前页面中识别业务。(1) The identification module 520 identifies the business from the current page.

在本实施例中,当前页面中通常具有反映业务的内容,例如,对于互联网金融业务,则页面的文字通常体现了互联网金融业务的名称、内容、资格要求等等,通过此类内容能够识别业务。In this embodiment, the current page usually has content that reflects the business. For example, for Internet financial business, the text on the page usually reflects the name, content, qualification requirements, etc. of the Internet financial business, and the business can be identified through such content. .

(2)识别模块520根据目标文件的内容识别业务。(2) The identification module 520 identifies the service according to the content of the target file.

在本实施例中,也可以通过目标文件的内容来识别业务,例如,通过图像识别技术,可以识别出用户上传的是身份证,进而判断出身份证通常用于互联网金融业务、审批服务等业务中的身份认定,而身份认定对身份证体积通常有统一的要求,此时可根据该要求进行文件压缩。In this embodiment, the service can also be identified by the content of the target file. For example, through image recognition technology, it can be identified that the user uploads an ID card, and then it can be determined that the ID card is usually used for Internet financial services, approval services and other services The identity verification in the ID card usually has uniform requirements for the size of the ID card, and the file can be compressed according to the requirements.

验证模块540,向服务器发送验证请求,以确定服务器上是否存在目标文件,并在服务器上不存在目标文件时,获取服务器上存储的切片文件信息。The verification module 540 sends a verification request to the server to determine whether the target file exists on the server, and obtains slice file information stored on the server when the target file does not exist on the server.

上传模块550,根据切片文件信息,向服务器发送上传请求,以将服务器未存储的切片文件发送至服务器,具体地,根据预设顺序向服务器上传切片文件,在页面刷新或关闭时停止上传并记录上传进度,以及在页面刷新后或重新打开后根据上传进度自动选择切片文件继续上传。The uploading module 550 sends an upload request to the server according to the slice file information, so as to send the slice file not stored by the server to the server, specifically, uploads the slice file to the server according to the preset order, stops uploading and records when the page is refreshed or closed Upload progress, and automatically select slice files to continue uploading according to the upload progress after the page is refreshed or reopened.

合并模块560,统计服务器上存储切片文件的数量以及本次上传切片文件的数量,并在服务器上存储切片文件的数量与本次上传切片文件的数量之和等于切片处理得到所有切片文件的数量时,确定所有切片文件上传完成。The merging module 560 counts the number of slice files stored on the server and the number of slice files uploaded this time, and when the sum of the number of slice files stored on the server and the number of slice files uploaded this time is equal to the number of all slice files obtained by slicing processing , make sure all slice files are uploaded.

在本实施例中,通过服务器上存储切片文件的数量、本次上传切片文件的数量、本次切片的文件总数量进行计算,可以准确地判断目标文件是否上传完毕。In this embodiment, by calculating the number of slice files stored on the server, the number of slice files uploaded this time, and the total number of files sliced this time, it can be accurately determined whether the target file has been uploaded.

合并模块560在目标文件对应的所有切片文件上传完成后,向服务器发送合并文件请求,以请求服务器将所有切片文件合并为目标文件。The merging module 560 sends a merge file request to the server after uploading all the slice files corresponding to the target file, so as to request the server to merge all the slice files into the target file.

根据本实施例的技术方案,当计算出所有切片文件上传完毕后,则触发通知服务器合并目标文件。According to the technical solution of this embodiment, when it is calculated that all slice files are uploaded, the notification server is triggered to merge the target files.

本领域技术人员可以理解,上述装置实施例中的各模块可以按照描述分布于装置中,也可以进行相应变化,分布于不同于上述实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the modules in the foregoing apparatus embodiments may be distributed in the apparatus as described, or may be changed accordingly and distributed in one or more apparatuses different from the foregoing embodiments. The modules in the foregoing embodiments may be combined into one module, or may be further split into multiple sub-modules.

如图6所示,本发明的一个实施例中提供了一种浏览器,其工作流程如下:浏览器获取待上传的目标文件,通过目标文件的内容计算哈希值,对文件进行切片处理得到若干个切片文件。浏览器向服务器发送验证请求,请求参数携带文件哈希值与文件名。服务端根据请求参数哈希值和文件名检索存储空间是否存在该文件或已上传的切片文件,返回上传标识和已上传切片名称列表给予浏览器;浏览器根据上传标识判断是否需要继续上传,如需要继续上传,识别当前需要继续上传的切片文件,并向服务器发送文件上传请求,请求参数中携带文件哈希值和切片文件,服务器接收文件并存储到由哈希值命名的存储文件夹内;待所有文件上传完毕,浏览器向服务端发送合并文件请求,服务器对已上传切片进行合并并且以哈希值.文件名命名文件。方案实现了文件秒传和断点续传,大大提高文件上传速度、降低网络资源的占用、减轻服务器处理压力。As shown in FIG. 6, an embodiment of the present invention provides a browser, and its workflow is as follows: the browser obtains a target file to be uploaded, calculates a hash value according to the content of the target file, and slices the file to obtain Several slice files. The browser sends an authentication request to the server, and the request parameters carry the file hash value and file name. The server searches whether the file or the uploaded slice file exists in the storage space according to the request parameter hash value and file name, and returns the upload identifier and the list of uploaded slice names to the browser; the browser judges whether it needs to continue uploading according to the upload identifier, such as Need to continue uploading, identify the slice file that needs to continue uploading, and send a file upload request to the server. The request parameter carries the file hash value and the slice file, and the server receives the file and stores it in the storage folder named by the hash value; After all files are uploaded, the browser sends a merge file request to the server, and the server merges the uploaded slices and names the file with the hash value and the file name. The solution realizes file transfer in seconds and resumable upload at breakpoints, which greatly improves the file upload speed, reduces the occupation of network resources, and reduces the processing pressure of the server.

下面描述本发明的电子设备实施例,该电子设备可以视为对于上述本发明的方法和装置实施例的实体形式的实施方式。对于本发明电子设备实施例中描述的细节,应视为对于上述方法或装置实施例的补充;对于在本发明电子设备实施例中未披露的细节,可以参照上述方法或装置实施例来实现。The electronic device embodiments of the present invention are described below, and the electronic device can be regarded as an implementation in a physical form for the above-mentioned method and apparatus embodiments of the present invention. The details described in the electronic device embodiments of the present invention should be regarded as supplements to the above method or device embodiments; for details not disclosed in the electronic device embodiments of the present invention, reference may be made to the above method or device embodiments for implementation.

图7是根据本发明的一种电子设备的示例性实施例的结构框图。图7显示的电子设备仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 7 is a structural block diagram of an exemplary embodiment of an electronic device according to the present invention. The electronic device shown in FIG. 7 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present invention.

如图7所示,该示例性实施例的电子设备200以通用数据处理设备的形式表现。电子设备200的组件可以包括但不限于:至少一个处理单元210、至少一个存储单元220、连接不同系统组件(包括存储单元220和处理单元210)的总线230、显示单元240等。As shown in FIG. 7, the electronic device 200 of this exemplary embodiment takes the form of a general-purpose data processing device. Components of the electronic device 200 may include, but are not limited to, at least one processing unit 210, at least one storage unit 220, a bus 230 connecting different system components (including the storage unit 220 and the processing unit 210), a display unit 240, and the like.

其中,所述存储单元220存储有计算机可读程序,其可以是源程序或都只读程序的代码。所述程序可以被处理单元210执行,使得所述处理单元210执行本发明各种实施方式的步骤。例如,所述处理单元210可以执行如图1所示的步骤。Wherein, the storage unit 220 stores a computer-readable program, which may be a source program or a code of a read-only program. The program may be executed by the processing unit 210 to cause the processing unit 210 to perform the steps of various embodiments of the present invention. For example, the processing unit 210 may perform the steps shown in FIG. 1 .

所述存储单元220可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)2201和/或高速缓存存储单元2202,还可以进一步包括只读存储单元(ROM)2203。所述存储单元220还可以包括具有一组(至少一个)程序模块2205的程序/实用工具2204,这样的程序模块2205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 2201 and/or a cache storage unit 2202 , and may further include a read-only storage unit (ROM) 2203 . The storage unit 220 may also include a program/utility 2204 having a set (at least one) of program modules 2205 including, but not limited to, an operating system, one or more application programs, other program modules, and programs Data, each or some combination of these examples may include an implementation of a network environment.

总线230可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。The bus 230 may be representative of one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures. bus.

电子设备200也可以与一个或多个外部设备300(例如键盘、显示器、网络设备、蓝牙设备等)通信,使得用户能经由这些外部设备300与该电子设备200交互,和/或使得该电子设备200能与一个或多个其它数据处理设备(例如路由器、调制解调器等等)进行通信。这种通信可以通过输入/输出(I/O)接口250进行,还可以通过网络适配器260与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)进行。网络适配器260可以通过总线230与电子设备200的其它模块通信。应当明白,尽管图中未示出,电子设备200中可使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 200 may also communicate with one or more external devices 300 (eg, keyboards, displays, network devices, Bluetooth devices, etc.) to enable a user to interact with the electronic device 200 via these external devices 300 and/or to enable the electronic device 200 can communicate with one or more other data processing devices (eg, routers, modems, etc.). Such communication may take place through input/output (I/O) interface 250 and through network adapter 260 with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) . The network adapter 260 may communicate with other modules of the electronic device 200 through the bus 230 . It should be understood that, although not shown, other hardware and/or software modules may be used in electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives and data backup storage systems.

图8是本发明的一个计算机可读介质实施例的示意图。如图8所示,所述计算机程序可以存储于一个或多个计算机可读介质上。计算机可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。当所述计算机程序被一个或多个数据处理设备执行时,使得该计算机可读介质能够实现本发明的上述方法,即:浏览器获取待上传的目标文件,对其进行切片处理得到多个切片文件;所述浏览器向服务器发送验证请求,以确定所述服务器上是否存在所述目标文件,并在所述服务器上不存在所述目标文件时,获取所述服务器上存储的切片文件信息;所述浏览器根据所述切片文件信息,向所述服务器发送上传请求,以将所述服务器未存储的切片文件发送至所述服务器;所述浏览器在所述目标文件对应的所有切片文件上传完成后,向所述服务器发送合并文件请求,以请求所述服务器将所述所有切片文件合并为所述目标文件。Figure 8 is a schematic diagram of a computer readable medium embodiment of the present invention. As shown in Figure 8, the computer program may be stored on one or more computer readable media. The computer-readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. When the computer program is executed by one or more data processing devices, the computer-readable medium can implement the above method of the present invention, that is, the browser obtains the target file to be uploaded, and slices it to obtain multiple slices file; the browser sends a verification request to the server to determine whether the target file exists on the server, and when the target file does not exist on the server, obtains slice file information stored on the server; The browser sends an upload request to the server according to the slice file information, so as to send the slice files not stored by the server to the server; the browser uploads all slice files corresponding to the target file After completion, a merge file request is sent to the server to request the server to merge all the slice files into the target file.

通过以上的实施方式的描述,本领域的技术人员易于理解,本发明描述的示例性实施例可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本发明实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个计算机可读的存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台数据处理设备(可以是个人计算机、服务器、或者网络设备等)执行根据本发明的上述方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described in the present invention may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present invention may be embodied in the form of software products, and the software products may be stored in a computer-readable storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a data processing device (which may be a personal computer, a server, or a network device, etc.) to perform the above-described method according to the present invention.

所述计算机可读存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读存储介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。The computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, carrying readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable storage medium can also be any readable medium other than a readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言的任意组合来编写用于执行本发明操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural Programming Language - such as the "C" language or similar programming language. The program code may execute entirely on the user computing device, partly on the user device, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).

综上所述,本发明可以执行计算机程序的方法、装置、电子设备或计算机可读介质来实现。可以在实践中使用微处理器或者数字信号处理器(DSP)等通用数据处理设备来实现本发明的一些或者全部功能。To sum up, the present invention can be implemented by a method, an apparatus, an electronic device or a computer-readable medium for executing a computer program. Some or all of the functions of the present invention may be implemented in practice using general purpose data processing devices such as microprocessors or digital signal processors (DSPs).

以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,应理解的是,本发明不与任何特定计算机、虚拟装置或者电子设备固有相关,各种通用装置也可以实现本发明。以上所述仅为本发明的具体实施例而已,并不用于限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or electronic device, and various general-purpose devices are also The present invention can be implemented. The above are only specific embodiments of the present invention, and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the present invention. within the scope of protection.

Claims (10)

1. A method for uploading files through a browser is characterized by comprising the following steps:
the method comprises the steps that a browser obtains a target file to be uploaded, and slicing processing is conducted on the target file to obtain a plurality of slice files;
the browser sends a verification request to a server to determine whether the target file exists on the server, and when the target file does not exist on the server, slice file information stored on the server is acquired;
the browser sends an uploading request to the server according to the information of the slice files so as to send the slice files which are not stored by the server to the server;
and after uploading all the slice files corresponding to the target file, the browser sends a file merging request to the server to request the server to merge all the slice files into the target file.
2. The method for uploading files through a browser according to claim 1, wherein before the slicing process is performed on the files to obtain a plurality of sliced files, the method further comprises:
and the browser calculates the size of each slice file according to the size of the target file.
3. The method for uploading files through the browser according to any one of claims 1-2, wherein before the slicing process is performed on the files to obtain a plurality of sliced files, the method further comprises:
the browser detects the current network transmission speed, and calculates the size of each slice file according to the speed of the network transmission speed.
4. The method for uploading files through the browser according to any one of claims 1-3, wherein the browser sends a verification request to the server, and the method comprises the following steps:
the browser calculates the unique identifier of the target file according to the content of the target file, and generates a verification request according to the unique identifier so that the server can search the target file according to the unique identifier;
the browser sends an uploading request to the server according to the slice file information, and the uploading request comprises the following steps:
and the browser generates the uploading request according to the unique identifier of the target file, so that the server selects a storage space according to the unique identifier to store the received slice file.
5. The method for uploading files through the browser according to any one of claims 1 to 4, wherein the browser sends an upload request to the server according to the information of the slice files, and the method comprises the following steps:
the browser uploads the slice files to the server according to a preset sequence, stops uploading and records the uploading progress when a page is refreshed or closed, and automatically selects the slice files to continue uploading according to the uploading progress after the page is refreshed or reopened.
6. The method for uploading the file through the browser according to any one of claims 1 to 5, wherein the browser acquires the target file to be uploaded, and comprises the following steps:
and the browser identifies the service corresponding to the target file and compresses the target file according to the requirement of the service on the file size.
7. The method for uploading the file through the browser according to any one of claims 1 to 6, wherein the browser identifies a service corresponding to the target file, and comprises:
and the browser identifies the service from the current page or identifies the service according to the content of the target file.
8. A browser, comprising:
the slicing module is used for acquiring a target file to be uploaded and slicing the target file to obtain a plurality of sliced files;
the verification module is used for sending a verification request to a server to determine whether the target file exists on the server or not and acquiring the information of the slice file stored on the server when the target file does not exist on the server;
the uploading module sends an uploading request to the server according to the information of the slice files so as to send the slice files which are not stored by the server to the server;
and the merging module is used for sending a file merging request to the server after all the slice files corresponding to the target file are uploaded, so as to request the server to merge all the slice files into the target file.
9. An electronic device, comprising:
a processor; and
a memory storing computer-executable instructions that, when executed, cause the processor to perform the method of any of claims 1-7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN202010660465.5A 2020-07-10 2020-07-10 Method for uploading file through browser, browser and electronic equipment Pending CN111935227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010660465.5A CN111935227A (en) 2020-07-10 2020-07-10 Method for uploading file through browser, browser and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010660465.5A CN111935227A (en) 2020-07-10 2020-07-10 Method for uploading file through browser, browser and electronic equipment

Publications (1)

Publication Number Publication Date
CN111935227A true CN111935227A (en) 2020-11-13

Family

ID=73312513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010660465.5A Pending CN111935227A (en) 2020-07-10 2020-07-10 Method for uploading file through browser, browser and electronic equipment

Country Status (1)

Country Link
CN (1) CN111935227A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112769906A (en) * 2020-12-25 2021-05-07 三盟科技股份有限公司 File breakpoint uploading method and system, computer equipment and storage medium
CN113055455A (en) * 2021-03-09 2021-06-29 中国联合网络通信集团有限公司 File uploading method and equipment
CN114338646A (en) * 2021-11-29 2022-04-12 王建冬 File interactive transmission method, device, equipment and storage medium
CN114390039A (en) * 2021-11-30 2022-04-22 航天信息股份有限公司 Method and system for uploading and downloading files
CN114598697A (en) * 2022-03-29 2022-06-07 浪潮云信息技术股份公司 Method and device for transmitting file and computer readable storage medium
CN115002100A (en) * 2022-05-27 2022-09-02 平安普惠企业管理有限公司 File transmission method and device, electronic equipment and storage medium
CN115695410A (en) * 2022-09-12 2023-02-03 方正株式(武汉)科技开发有限公司 Large file fragment string parallel uploading method and system
CN116032941A (en) * 2023-01-10 2023-04-28 浪潮商用机器有限公司 Large file uploading method, device, equipment and medium
CN116074306A (en) * 2022-12-28 2023-05-05 西藏宁算科技集团有限公司 File uploading and downloading method, equipment and storage medium
CN116233020A (en) * 2023-02-23 2023-06-06 中银金融科技有限公司 Credit application data processing method and device, storage medium and electronic equipment
CN118590480A (en) * 2024-05-28 2024-09-03 北京蓬阳丰业科技有限公司 A file transmission method, device, equipment and storage medium
CN118714081A (en) * 2024-08-28 2024-09-27 成都新希望金融信息有限公司 Data sending method, data receiving method, and data processing system
CN119814760A (en) * 2024-12-04 2025-04-11 天翼云科技有限公司 File uploading method, device, electronic device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170093954A1 (en) * 2015-09-28 2017-03-30 Sony Corporation Uploading over parallel requests
CN107172131A (en) * 2017-04-26 2017-09-15 腾讯科技(深圳)有限公司 File uploading method and device
CN107528926A (en) * 2017-10-11 2017-12-29 郑州云海信息技术有限公司 A kind of file uploading method and system
WO2018126742A1 (en) * 2017-01-05 2018-07-12 福建亿榕信息技术有限公司 Electronic batch processing method and system for stored archives, and storage medium
CN108881461A (en) * 2018-07-02 2018-11-23 深圳市茁壮网络股份有限公司 A kind of data transmission method, apparatus and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170093954A1 (en) * 2015-09-28 2017-03-30 Sony Corporation Uploading over parallel requests
WO2018126742A1 (en) * 2017-01-05 2018-07-12 福建亿榕信息技术有限公司 Electronic batch processing method and system for stored archives, and storage medium
CN107172131A (en) * 2017-04-26 2017-09-15 腾讯科技(深圳)有限公司 File uploading method and device
CN107528926A (en) * 2017-10-11 2017-12-29 郑州云海信息技术有限公司 A kind of file uploading method and system
CN108881461A (en) * 2018-07-02 2018-11-23 深圳市茁壮网络股份有限公司 A kind of data transmission method, apparatus and system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112769906A (en) * 2020-12-25 2021-05-07 三盟科技股份有限公司 File breakpoint uploading method and system, computer equipment and storage medium
CN113055455A (en) * 2021-03-09 2021-06-29 中国联合网络通信集团有限公司 File uploading method and equipment
CN114338646A (en) * 2021-11-29 2022-04-12 王建冬 File interactive transmission method, device, equipment and storage medium
CN114390039A (en) * 2021-11-30 2022-04-22 航天信息股份有限公司 Method and system for uploading and downloading files
CN114598697A (en) * 2022-03-29 2022-06-07 浪潮云信息技术股份公司 Method and device for transmitting file and computer readable storage medium
CN114598697B (en) * 2022-03-29 2024-06-07 浪潮云信息技术股份公司 Method and device for transmitting file and computer readable storage medium
CN115002100B (en) * 2022-05-27 2024-03-08 河北燕鸣科技有限公司 File transmission method and device, electronic equipment and storage medium
CN115002100A (en) * 2022-05-27 2022-09-02 平安普惠企业管理有限公司 File transmission method and device, electronic equipment and storage medium
CN115695410A (en) * 2022-09-12 2023-02-03 方正株式(武汉)科技开发有限公司 Large file fragment string parallel uploading method and system
CN116074306A (en) * 2022-12-28 2023-05-05 西藏宁算科技集团有限公司 File uploading and downloading method, equipment and storage medium
CN116032941A (en) * 2023-01-10 2023-04-28 浪潮商用机器有限公司 Large file uploading method, device, equipment and medium
CN116233020A (en) * 2023-02-23 2023-06-06 中银金融科技有限公司 Credit application data processing method and device, storage medium and electronic equipment
CN118590480A (en) * 2024-05-28 2024-09-03 北京蓬阳丰业科技有限公司 A file transmission method, device, equipment and storage medium
CN118714081A (en) * 2024-08-28 2024-09-27 成都新希望金融信息有限公司 Data sending method, data receiving method, and data processing system
CN119814760A (en) * 2024-12-04 2025-04-11 天翼云科技有限公司 File uploading method, device, electronic device and readable storage medium
CN119814760B (en) * 2024-12-04 2025-11-11 天翼云科技有限公司 File uploading method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN111935227A (en) Method for uploading file through browser, browser and electronic equipment
WO2021036228A1 (en) File upload method and apparatus, terminal, server, system, and storage medium
WO2021164178A1 (en) Cloud technology-based file fragment uploading method and apparatus, and device and storage medium
CN111078140B (en) Nuclear power station file uploading management method and device, terminal equipment and medium
CN103401934A (en) Method and system for acquiring log data
CN112311654B (en) Instant messaging message processing method, device, medium and electronic device
CN110225104A (en) Data capture method, device and terminal device
CN110737726B (en) Method and device for determining test data of interface to be tested
CN115237857A (en) Log processing method and device, computer equipment and storage medium
CN114816499B (en) Electronic resource sharing method, device and storage medium
CN110851471A (en) Distributed log data processing method, device and system
CN114520807A (en) File uploading and downloading method and device, computer equipment and storage medium
WO2024124789A1 (en) File processing method and apparatus, server, and medium
CN116614495A (en) Data uploading method, device, equipment, storage medium and program product
CN114048059B (en) Method, device, computer equipment and storage medium for adjusting interface timeout
CN114866533A (en) File uploading method and device and electronic equipment
CA3061623A1 (en) File sending in instant messaging applications
WO2021012554A1 (en) Method and apparatus for updating data field in block chain, medium, and electronic device
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN111240948A (en) Experience data processing method and device, computer equipment and storage medium
CN119766804A (en) File transmission method, device, equipment, medium and product
CN111475468A (en) Log access method, device, equipment and storage medium of newly added system
CN117271584A (en) Data processing method and device, computer readable storage medium and electronic equipment
CN115269338A (en) Application system monitoring method, device, server, medium and product
CN115168767A (en) A credential uploading method, device, system, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Country or region after: China

Address after: Room 1118, No.4, Lane 800, Tongpu Road, Putuo District, Shanghai 200062

Applicant after: SHANGHAI QIYU INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 201500 room a1-5962, 58 Fumin Branch Road, Hengsha Township, Chongming District, Shanghai (Shanghai Hengtai Economic Development Zone)

Applicant before: SHANGHAI QIYU INFORMATION TECHNOLOGY Co.,Ltd.

Country or region before: China