Movatterモバイル変換


[0]ホーム

URL:


CN113810454A - File transmission method and device, electronic equipment and storage medium - Google Patents

File transmission method and device, electronic equipment and storage medium
Download PDF

Info

Publication number
CN113810454A
CN113810454ACN202110054082.8ACN202110054082ACN113810454ACN 113810454 ACN113810454 ACN 113810454ACN 202110054082 ACN202110054082 ACN 202110054082ACN 113810454 ACN113810454 ACN 113810454A
Authority
CN
China
Prior art keywords
cloud server
target file
file
stored
portable wifi
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.)
Granted
Application number
CN202110054082.8A
Other languages
Chinese (zh)
Other versions
CN113810454B (en
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co LtdfiledCriticalBeijing Jingdong Century Trading Co Ltd
Priority to CN202110054082.8ApriorityCriticalpatent/CN113810454B/en
Publication of CN113810454ApublicationCriticalpatent/CN113810454A/en
Application grantedgrantedCritical
Publication of CN113810454BpublicationCriticalpatent/CN113810454B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供了一种文件传输系统、方法、装置及存储介质,所述系统包括:移动终端、随身wifi、云服务器;所述移动终端连接到随身wifi,并通过随身wifi接入云服务器;所述移动终端,用于接收针对目标文件的上传请求,检测云服务器和随身wifi中是否存储有目标文件,当检测确定云服务器和随身wifi中均未存储目标文件时,将目标文件上传到随身wifi;所述随身wifi,用于已存储目标文件的情况下,将目标文件异步上传至云服务器;用于未存储目标文件的情况下,接收和存储移动终端上传的目标文件,将目标文件异步上传至云服务器;所述云服务器,用于接收和存储所述随身wifi异步上传的目标文件。本发明不需要移动终端长时间保持移动终端的工作状态和移动网络的稳定可用。

Figure 202110054082

The invention provides a file transmission system, method, device and storage medium. The system includes: a mobile terminal, a portable wifi, and a cloud server; the mobile terminal is connected to the portable wifi, and accesses the cloud server through the portable wifi; The mobile terminal is used to receive an upload request for a target file, detect whether the target file is stored in the cloud server and the portable wifi, and when the detection determines that neither the cloud server nor the portable wifi stores the target file, upload the target file to the portable wifi The portable wifi is used for asynchronously uploading the target file to the cloud server when the target file has been stored; for receiving and storing the target file uploaded by the mobile terminal when the target file is not stored, asynchronously uploading the target file to a cloud server; the cloud server is used to receive and store the target file asynchronously uploaded by the portable wifi. The present invention does not require the mobile terminal to maintain the working state of the mobile terminal and the stable availability of the mobile network for a long time.

Figure 202110054082

Description

File transmission method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for file transmission in a mobile network, an electronic device, and a storage medium.
Background
In the prior art, when a user uses a mobile terminal such as a mobile phone and the like to transmit a file to a cloud server, a full transmission mode of completely transmitting the file to the cloud server can be adopted, and the transmission mode needs a long file transmission time, has high requirements on a network environment where the user is located, and needs to keep the working state of the mobile terminal and the stability and the availability of a mobile network for a long time.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a file transmission method, apparatus, electronic device and storage medium, which do not require a mobile terminal to maintain an operating state of the mobile terminal and a mobile network to be stably available for a long time.
In order to achieve the purpose, the invention provides the following technical scheme:
a file transfer system, the file transfer system comprising: the system comprises a mobile terminal, a portable wifi and a cloud server; the mobile terminal is connected to the portable wifi and is accessed to the cloud server through the portable wifi;
the mobile terminal is used for receiving an uploading request aiming at a target file, detecting whether the target file is stored in the cloud server and the portable wifi, and uploading the target file to the portable wifi when the detection determines that the target file is not stored in the cloud server and the portable wifi;
the portable wifi is used for asynchronously uploading the target file to the cloud server under the condition that the target file is stored; the method comprises the steps that under the condition that a target file is not stored, the target file uploaded by a mobile terminal is received and stored, and the target file is asynchronously uploaded to a cloud server;
and the cloud server is used for receiving and storing the target file asynchronously uploaded by the portable wifi.
A file transmission method is applied to a mobile terminal, wherein the mobile terminal is connected to a portable wifi and is accessed to a cloud server through the portable wifi; the method comprises the following steps:
receiving an uploading request aiming at a target file;
detecting whether a target file is stored in the cloud server and the portable wifi;
when the object file stored in the portable wifi is detected and determined, the portable wifi asynchronously uploads the stored object file to the cloud server;
when the detection confirms that the target file is not stored in the cloud server and the portable wifi, the target file is uploaded to the portable wifi, and the target file is asynchronously uploaded to the cloud server through the portable wifi.
A file transmission device is applied to a mobile terminal, wherein the mobile terminal is connected to a portable wifi and is accessed to a cloud server through the portable wifi; the device includes:
the receiving and sending unit is used for receiving an uploading request aiming at a target file;
the detection unit is used for detecting whether target files are stored in the cloud server and the portable wifi;
the uploading unit is used for asynchronously uploading the stored target file to the cloud server by the portable wifi when the detection unit detects and determines that the portable wifi has the stored target file; when the detection unit detects that the target file is not stored in the cloud server and the portable wifi, the target file is uploaded to the portable wifi, and the target file is asynchronously uploaded to the cloud server through the portable wifi.
An electronic device, comprising: the system comprises at least one processor and a memory connected with the at least one processor through a bus; the memory stores one or more computer programs executable by the at least one processor; the at least one processor, when executing the one or more computer programs, performs the steps in the file transfer method described above.
A computer-readable storage medium storing one or more computer programs which, when executed by a processor, implement the steps in the file transfer method described above.
According to the technical scheme, the mobile terminal is connected to the portable wifi, the portable wifi is connected to the cloud server, when the target file is uploaded to the cloud server, the target file only needs to be uploaded to the portable wifi, and the portable wifi transmits the target file to the cloud server asynchronously. After the mobile terminal uploads the target file to the portable wifi, the portable wifi does not need to participate in the process of asynchronously uploading the target file to the cloud server, so that the mobile terminal does not need to keep the working state of the mobile terminal and the stability and the availability of a mobile network for a long time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a block diagram of a file transfer system according to an embodiment of the present invention;
FIG. 2 is a flowchart of a file transmission method according to an embodiment of the present invention
FIG. 3 is a schematic structural diagram of a file transfer device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the embodiment of the invention, when the mobile terminal uploads the target file to the cloud server, the portable wifi (also called portable Wi-Fi) is used as an intermediate node for uploading the target file, the target file uploaded by the mobile terminal is cached and the operation of uploading the target file to the cloud server is asynchronously executed, so that the mobile terminal is separated from the uploading process of the target file, and the mobile terminal does not need to keep the working state of the mobile terminal and the stability and the usability of a mobile network for a long time because the time spent by the mobile terminal for uploading the target file to the portable wifi is short and the process of uploading the target file to the cloud server by the portable wifi is not needed.
The following embodiments are provided to illustrate the present invention:
referring to fig. 1, fig. 1 is a schematic diagram of an architecture of a file transfer system according to an embodiment of the present invention, and as shown in fig. 1, the file transfer system includes: themobile terminal 10, the portable wifi20 and thecloud server 30; themobile terminal 10 is connected to a personal wifi20, and accesses thecloud server 30 through apersonal wifi 20.
In this embodiment, themobile terminal 10 is configured to receive an upload request for a target file, detect whether the target file is stored in thecloud server 30 and the personal wifi20, and upload the target file to the personal wifi20 when the detection determines that the target file is not stored in neither thecloud server 30 nor thepersonal wifi 20.
In this embodiment, the wifi20 is used for asynchronously uploading the target file to thecloud server 30 when the target file is stored; the method is used for receiving and storing the target file uploaded by themobile terminal 10 under the condition that the target file is not stored, and asynchronously uploading the target file to thecloud server 30.
In this embodiment, thecloud server 30 is configured to receive and store the target file asynchronously uploaded by the wifi with the user.
According to the file transmission system shown in fig. 1, in this embodiment, themobile terminal 10 is connected to the portable wifi20, and accesses thecloud server 30 through the portable wifi20, and when uploading the target file to thecloud server 30, if the target file is not stored in both thecloud server 30 and the portable wifi20, the target file only needs to be uploaded to the portable wifi20, and the portable wifi20 asynchronously transmits the target file to thecloud server 30. After themobile terminal 10 uploads the target file to the personal wifi20, the process of asynchronously uploading the target file to thecloud server 30 by the personal wifi20 does not need the participation of themobile terminal 10, so that the working state of themobile terminal 10 and the stability and availability of the mobile network do not need to be maintained for a long time.
The embodiment of the present invention further provides a second file transfer system, where the second file transfer system has the same system architecture as the file transfer system shown in fig. 1, that is, the second file transfer system also includes: themobile terminal 10, the portable wifi20 and thecloud server 30; themobile terminal 10 is connected to a personal wifi20, and accesses thecloud server 30 through apersonal wifi 20.
In this embodiment, themobile terminal 10 is configured to receive an upload request for a target file triggered by a user, detect whether the target file is stored in thecloud server 30 and the personal wifi20, and upload the target file to the personal wifi20 when it is determined by the detection that the target file is not stored in neither thecloud server 30 nor thepersonal wifi 20.
In this embodiment, themobile terminal 10 is further configured to: when detecting and determining that the target file is stored in thecloud server 20, a file upload prompt may be input, and the upload process is ended; when the detection determines that the target file is stored in the personal wifi20, a file cached prompt can be output, and the uploading process is ended.
In this embodiment, the wifi20 is used for asynchronously uploading the target file to thecloud server 30 when the target file is stored; the method is used for receiving and storing the target file uploaded by themobile terminal 10 under the condition that the target file is not stored, and asynchronously uploading the target file to thecloud server 30.
In practical applications, after themobile terminal 10 uploads the target file to the personal wifi20, if the user triggers the upload request for the target file again during the process of asynchronously uploading the target file to thecloud server 30 through the personal wifi20, the personal wifi20 may have stored the target file, and in this case, the personal wifi20 may automatically execute the operation of asynchronously uploading the stored target file to thecloud server 30, without the participation of themobile terminal 10.
In this embodiment, thecloud server 30 is configured to receive and store the target file asynchronously uploaded by the wifi with the user.
In this embodiment, themobile terminal 10 can know from theserver 30 whether the target file is stored in thecloud server 30 and thepersonal wifi 20.
Specifically, themobile terminal 10, detecting whether the target file is stored in thecloud server 30 and the personal wifi20, includes: the uploading request aiming at the target file is sent to thecloud server 30 through the personal wifi20, the uploading response returned by thecloud server 30 through the personal wifi20 is received, and whether the target file is stored in thecloud server 30 and the personal wifi20 or not is determined according to the uploading response.
Here, themobile terminal 10, determining whether the target file is stored in thecloud server 30 and the personal wifi20 according to the upload response, specifically includes: if the upload response indicates that thecloud server 30 has stored the target file, it is determined that thecloud server 30 has stored the target file, if the upload response indicates that the personal wifi20 has stored the target file, it is determined that the target file has stored in the personal wifi20, and if the upload response indicates that the target file has not been stored in both thecloud server 30 and the personal wifi20, it is determined that the target file has not been stored in both thecloud server 30 and thepersonal wifi 20.
In this embodiment, thecloud server 30 is configured to receive an upload request sent by themobile terminal 10 via the personal wifi20, detect whether a target file is stored in thecloud server 30, and whether thecloud server 30 is receiving the target file uploaded by the personal wifi20, if the target file is stored in thecloud server 30, return an upload response indicating that thecloud server 30 has stored the target file via the personal wifi20, if thecloud server 30 is receiving the target file uploaded by the personal wifi20, return an upload response indicating that the personal wifi20 has stored the target file via the personal wifi20, and otherwise return an upload response indicating that the target file is not stored in both thecloud server 30 and the personal wifi20 via thepersonal wifi 20.
As can be seen from the content of the second file transmission system, in this embodiment, after receiving the upload request for the target file, themobile terminal 10 sends the upload request to thecloud server 30 via the portable wifi20, and thecloud server 30 locally detects whether the target file is already stored and whether the portable wifi20 is uploading the target file to thecloud server 30, so as to notify the detection result to themobile terminal 10 through the upload response, so that themobile terminal 10 determines that the target file is not stored in both thecloud server 30 and the portable wifi20, and only needs to upload the target file to the portable wifi20, and asynchronously transmit the target file to thecloud server 30 through theportable wifi 20. After themobile terminal 10 uploads the target file to the personal wifi20, the process of asynchronously uploading the target file to thecloud server 30 by the personal wifi20 does not need the participation of themobile terminal 10, so that the working state of themobile terminal 10 and the stability and availability of the mobile network do not need to be maintained for a long time.
The embodiment of the present invention further provides a third file transfer system, where the third file transfer system has the same system architecture as the file transfer system shown in fig. 1, that is, the third file transfer system also includes: themobile terminal 10, the portable wifi20 and thecloud server 30; themobile terminal 10 is connected to a personal wifi20, and accesses thecloud server 30 through apersonal wifi 20.
In this embodiment, themobile terminal 10 is configured to receive an upload request for a target file triggered by a user, detect whether the target file is stored in thecloud server 30 and the personal wifi20, and upload the target file to the personal wifi20 when it is determined by the detection that the target file is not stored in neither thecloud server 30 nor thepersonal wifi 20.
In this embodiment, themobile terminal 10 is further configured to: when detecting and determining that the target file is stored in thecloud server 20, a file upload prompt may be input, and the upload process is ended; when the detection determines that the target file is stored in the personal wifi20, a file cached prompt can be output, and the uploading process is ended.
In this embodiment, the wifi20 is used for asynchronously uploading the target file to thecloud server 30 when the target file is stored; the method is used for receiving and storing the target file uploaded by themobile terminal 10 under the condition that the target file is not stored, and asynchronously uploading the target file to thecloud server 30.
In practical applications, after themobile terminal 10 uploads the target file to the personal wifi20, if the user triggers the upload request for the target file again during the process of asynchronously uploading the target file to thecloud server 30 through the personal wifi20, the personal wifi20 may have stored the target file, and in this case, the personal wifi20 may automatically execute the operation of asynchronously uploading the stored target file to thecloud server 30, without the participation of themobile terminal 10.
In this embodiment, the personal wifi20 receives and stores the target file uploaded by themobile terminal 10, and asynchronously uploads the target file to thecloud server 30, which specifically includes: and receiving the target file uploaded by themobile terminal 10, storing the target file into a free storage space when detecting that the free storage space enough for storing the target file exists in the personal wifi20, and asynchronously uploading the target file stored in the space storage space to thecloud server 30. Correspondingly, thecloud server 30 is configured to receive and store the target file asynchronously uploaded by the portable wifi.
In this embodiment, after receiving the target file uploaded by themobile terminal 10, the wifi20 further includes: and synchronously uploading the target file to thecloud server 30 when detecting that no free storage space enough for storing the target file exists in thepersonal wifi 20. Correspondingly, thecloud server 30 is used for receiving and storing the target file uploaded synchronously by thepersonal wifi 20.
According to the content of the third file transmission system, in this embodiment, when receiving the target file uploaded by themobile terminal 10, the portable wifi20 is divided into two processing modes according to whether there is enough free storage space locally for storing the target file, one is enough free storage space, in this case, the target file is stored in the free storage space, and the portable wifi20 will asynchronously store the stored target file to thecloud server 30; the other is that there is not enough free storage space, in which case the personal wifi20 will not store the target file, but rather upload the target file to thecloud server 30 synchronously. In this way, on one hand, the wifi20 can be enabled to perform the target file asynchronous uploading operation instead of themobile terminal 10 when there is enough storage space, so that themobile terminal 10 does not need to keep the working state and the mobile network stable and available for a long time, and on the other hand, the wifi20 can still support themobile terminal 10 to upload the target file to thecloud server 30 when there is not enough storage space.
The embodiment of the present invention further provides a fourth file transfer system, where the fourth file transfer system has the same system architecture as the file transfer system shown in fig. 1, that is, the fourth file transfer system also includes: themobile terminal 10, the portable wifi20 and thecloud server 30; themobile terminal 10 is connected to a personal wifi20, and accesses thecloud server 30 through apersonal wifi 20.
In this embodiment, themobile terminal 10 is configured to receive an upload request for a target file triggered by a user, detect whether the target file is stored in thecloud server 30 and the personal wifi20, and upload the target file to the personal wifi20 when it is determined by the detection that the target file is not stored in neither thecloud server 30 nor thepersonal wifi 20.
In this embodiment, themobile terminal 10 is further configured to: when detecting and determining that the target file is stored in thecloud server 20, a file upload prompt may be input, and the upload process is ended; when the detection determines that the target file is stored in the personal wifi20, a file cached prompt can be output, and the uploading process is ended.
In this embodiment, the wifi20 is used for asynchronously uploading the target file to thecloud server 30 when the target file is stored; the method is used for receiving and storing the target file uploaded by themobile terminal 10 under the condition that the target file is not stored, and asynchronously uploading the target file to thecloud server 30.
In practical applications, after themobile terminal 10 uploads the target file to the personal wifi20, if the user triggers the upload request for the target file again during the process of asynchronously uploading the target file to thecloud server 30 through the personal wifi20, the personal wifi20 may have stored the target file, and in this case, the personal wifi20 may automatically execute the operation of asynchronously uploading the stored target file to thecloud server 30, without the participation of themobile terminal 10.
In practical application, users can share files with each other. For example, a user may share a file a (which may be the target file) with another user during uploading of the file a to thecloud server 30 or after uploading of the file a to thecloud server 30 by using themobile terminal 10, specifically, the user may trigger a sharing request for the file a being uploaded or having been uploaded to the cloud server, after receiving the sharing request, themobile terminal 10 may send the sharing to thecloud server 30 via the wifi20, thecloud server 30 generates a sharing link pointing to the file a, and returns the sharing link to themobile terminal 10, and then, the user may provide the sharing link to another user by using themobile terminal 10, so that another user may download the file a through the sharing link.
In this embodiment, themobile terminal 10 is configured to receive a sharing request for a first file to be shared that is being uploaded or is uploaded to thecloud server 30, send the sharing request to thecloud server 30 via the wifi with the mobile terminal, receive a sharing response returned by thecloud server 30 via the wifi with the mobile terminal, and provide a sharing link carried by the sharing response to other users. Here, the sharing link is provided to the other user, for example, it may be sent to the other user by mail or instant messaging software (such as WeChat), so that the other user may download the file by clicking the sharing link.
In this embodiment, thecloud server 30 is configured to receive a sharing request for the first file to be shared, which is sent by themobile terminal 10 via the personal wifi20, generate a sharing link pointing to the first file to be shared according to the sharing request, and return a sharing response carrying the sharing link to themobile terminal 10 via thepersonal wifi 20.
In practical application, themobile terminal 10 may serve as a sharing initiator to provide the sharing link pointing to the first file to be shared to other users, and may also serve as a sharing receiver to obtain the sharing link pointing to the second file to be shared, which is provided by other users as the sharing initiator.
In this embodiment, the mobile terminal 10 is configured to receive a download request for a second file to be shared, which is pointed by a sharing link provided by another user, and send the download request to the wifi20, where the sharing link provided by the another user is generated by the cloud server 30 according to the sharing request sent by the another user for the second file to be shared, which is being uploaded or is uploaded to the cloud server 30; the file sharing system is used for receiving a second file to be shared issued by the portable wifi20 when the second file to be shared is determined to be stored (namely, the second file to be shared is downloaded from the portable wifi20, and the situation that the second file to be shared is downloaded from the portable wifi20 occurs when the sharing initiator and the sharing receiver are connected with the same portable wifi); the file sharing method includes receiving a second file to be shared (that is, downloading the second file to be shared from the cloud server 30) issued by the cloud server 30 when the second file to be shared is determined to be stored; the file uploading schedule is used for receiving the uploading schedule of the second file to be shared returned by the cloud server 30 through the personal wifi20 when the second file to be shared is determined not to be stored;
in this embodiment, the portable wifi20 is configured to receive a download request for a second file to be shared sent by themobile terminal 10, detect whether the portable wifi stores the second file to be shared, if the portable wifi stores the second file to be shared, send the second file to be shared to themobile terminal 10, and if the portable wifi does not store the second file to be shared, send the download request for the second file to be shared to thecloud server 30;
in this embodiment, thecloud server 30 is configured to receive a download request for a second file to be shared sent by the personal wifi20, detect whether the second file to be shared is stored in thecloud server 30, if the second file to be shared is stored, send the second file to be shared to themobile terminal 10 via the personal wifi20, otherwise, determine an upload progress of the second file to be shared, and send the upload progress of the second file to be shared to themobile terminal 10 via thepersonal wifi 20.
In this embodiment, when the second file to be shared is not stored in thecloud server 30, it indicates that the second file to be shared is not uploaded to thecloud server 30 by the wifi20, and at this time, thecloud server 30 may determine the uploading progress of the second file to be shared according to the content size of the uploaded file.
According to the content of the fourth file transmission system, in this embodiment, the users can share files, specifically, the sharing initiator initiates a sharing request for the file to be shared to thecloud server 30 by using themobile terminal 10, so that thecloud server 30 generates a sharing link pointing to the file to be shared and returns the sharing link to themobile terminal 10, and thus the sharing initiator can provide the sharing link to the sharing recipient, and the sharing recipient can download the file to be shared through the sharing link, thereby implementing file sharing between the users. In the process of sharing the file, for the situation that the sharing initiator and the sharing receiver are located in the same personal wifi, the sharing receiver also reduces the processing pressure of thecloud server 30 by downloading the file to be shared from the personal wifi20 in the situation that the file to be shared may be stored in thepersonal wifi 20.
The embodiment of the present invention further provides a fifth file transfer system, where the fifth file transfer system has the same system architecture as the file transfer system shown in fig. 1, that is, the fifth file transfer system also includes: themobile terminal 10, the portable wifi20 and thecloud server 30; themobile terminal 10 is connected to a personal wifi20, and accesses thecloud server 30 through apersonal wifi 20.
In this embodiment, themobile terminal 10 is configured to receive an upload request for a target file triggered by a user, detect whether the target file is stored in thecloud server 30 and the personal wifi20, and upload the target file to the personal wifi20 when it is determined by the detection that the target file is not stored in neither thecloud server 30 nor thepersonal wifi 20.
In this embodiment, themobile terminal 10 is further configured to: when detecting and determining that the target file is stored in thecloud server 20, a file upload prompt may be input, and the upload process is ended; when the detection determines that the target file is stored in the personal wifi20, a file cached prompt can be output, and the uploading process is ended.
In this embodiment, the wifi20 is used for asynchronously uploading the target file to thecloud server 30 when the target file is stored; the method is used for receiving and storing the target file uploaded by themobile terminal 10 under the condition that the target file is not stored, and asynchronously uploading the target file to thecloud server 30.
In practical applications, after themobile terminal 10 uploads the target file to the personal wifi20, if the user triggers the upload request for the target file again during the process of asynchronously uploading the target file to thecloud server 30 through the personal wifi20, the personal wifi20 may have stored the target file, and in this case, the personal wifi20 may automatically execute the operation of asynchronously uploading the stored target file to thecloud server 30, without the participation of themobile terminal 10.
In this embodiment, the user can select two uploading modes of uploading files through the portable wifi and uploading files without the portable wifi to be performed simultaneously, thecloud server 30 can compare the uploading end times of the two modes, and after the uploading of one of the uploading modes is finished, the uploading operation of the other uploading mode can be stopped, so that the uploading speed competition of the two uploading modes can be realized.
In this embodiment, after uploading the target file to the wifi20, themobile terminal 10 further includes: the connection with the portable wifi20 is disconnected, and thecloud server 30 is accessed through an access mode except theportable wifi 20.
In this embodiment, after themobile terminal 10 accesses thecloud server 30 by an access method other than the wifi20, the method further includes: receiving an uploading request aiming at the target file again, determining whether the target file needs to be uploaded again, and if the target file needs to be uploaded again, directly uploading the target file to thecloud server 30 according to an access mode of accessing thecloud server 30; if the target file does not need to be uploaded again, the target file is not directly uploaded to thecloud server 30.
In this embodiment, thecloud server 30 is configured to receive and store a target file directly uploaded by themobile terminal 10; the method is used for detecting the end time of directly uploading the target file by themobile terminal 10 and the end time of asynchronously uploading the target file by the portable wifi20, stopping the operation of asynchronously uploading the target file by the portable wifi20 when the first end of directly uploading the target file by themobile terminal 10 is detected, and stopping the operation of directly uploading the target file by themobile terminal 10 when the first end of asynchronously uploading the target file by the portable wifi20 is detected.
In practical applications, the target file is asynchronously transmitted to thecloud server 30 by the personal wifi20, since the target file has already been uploaded to the personal wifi20 before themobile terminal 10 disconnects from thepersonal wifi 20. Therefore, when themobile terminal 10 disconnects from the personal wifi20 and uploads the target file to thecloud server 30 again, thecloud server 30 may already store the target file or receive the file uploaded by the personal wifi20, and therefore, thecloud server 30 may notify that the stored target file or the target file is being uploaded, and in the case that the target file is being uploaded, the client may output an upload confirmation prompt and perform an upload operation after the user confirms the upload, so as to avoid a repeated upload situation that does not meet the user requirements.
In this embodiment, themobile terminal 10, determining whether the target file needs to be uploaded again, includes: the uploading request is directly sent to thecloud server 30, an uploading response directly returned by thecloud server 30 is received, and when the uploading response indicates that thecloud server 30 has stored the target file, it is determined that the target file does not need to be uploaded again; when the uploading response indicates that the wifi20 has stored the uploading response of the target file (at this time, it indicates that the wifi20 is uploading the target file to the cloud server 30), outputting a re-uploading confirmation request, if the uploading confirmation response indicating that the user needs to upload again is received, determining that the target file needs to be uploaded again, and if the uploading confirmation response indicating that the user does not need to upload again is received, determining that the target file does not need to be uploaded again;
in this embodiment, thecloud server 30 is configured to receive an upload request directly sent by themobile terminal 10, detect whether a target file is stored in thecloud server 10 and whether thecloud server 30 is receiving the target file uploaded by the wifi20, and return an upload response indicating that thecloud server 30 has stored the target file when thecloud server 30 has stored the target file; when thecloud server 30 is receiving a target file uploaded by the personal wifi20, an upload response is returned indicating that the personal wifi20 has stored the target file.
According to the content of the fifth file transmission system, in this embodiment, when themobile terminal 10 asynchronously uploads the target file to thecloud server 30 by using the portable wifi20, the connection with the portable wifi20 may also be disconnected, and then the target file is directly uploaded to thecloud server 30, the cloud server detects the end time of the two uploading manners, and after the uploading operation of any one uploading manner is completed, the uploading operation of the other uploading manner is stopped, so that the speed competition of the two uploading manners is realized, and by using the method, when a user is in a hurry to upload the file, the two manners can be selected for uploading, so that the file can be transmitted to thecloud server 30 in the shortest time.
The file transfer system provided in the embodiment of the present invention is described in detail above, and the embodiment of the present invention also provides a file transfer method, which is described in detail below with reference to fig. 2:
referring to fig. 2, fig. 2 is a flowchart of a file transmission method according to an embodiment of the present invention, where the method is applied to a mobile terminal, and the mobile terminal is connected to a portable wifi and accesses a cloud server through the portable wifi; as shown in fig. 2, the method comprises the steps of:
step 201, receiving an uploading request aiming at a target file;
step 202, detecting whether a target file is stored in the cloud server and the portable wifi;
step 203, when detecting and determining that the portable wifi has the stored target file, the portable wifi asynchronously uploads the stored target file to the cloud server;
and step 204, when the detection determines that the target file is not stored in the cloud server and the portable wifi, uploading the target file to the portable wifi, and asynchronously uploading the target file to the cloud server by the portable wifi.
In this embodiment, further comprising: and when the target file stored in the cloud server is detected and determined, no uploading operation is executed any more, and the process is ended.
In the process shown in figure 2 of the drawings,
whether the target file is stored in the cloud server and the portable wifi or not is detected, and the method comprises the following steps:
sending an uploading request aiming at a target file to a cloud server through a personal wifi so that the cloud server detects whether the target file is stored in the cloud server and whether the cloud server receives the target file uploaded by the personal wifi, if the target file is stored in the cloud server, returning an uploading response indicating that the cloud server has stored the target file through the personal wifi, if the cloud server receives the target file uploaded by the personal wifi, returning an uploading response indicating that the personal wifi stores the target file through the personal wifi, and if not, returning an uploading response indicating that the cloud server and the personal wifi do not store the target file through the personal wifi;
and receiving an uploading response returned by the cloud server through the portable wifi, and determining whether the target file is stored in the cloud server and the portable wifi according to the uploading response.
The method of fig. 2, further comprising:
receiving a sharing request aiming at a first file to be shared which is being uploaded or is uploaded to a cloud server, sending the sharing request to the cloud server through a portable wifi, enabling the cloud server to generate a sharing link pointing to the first file to be shared according to the sharing request, and returning a sharing response carrying the sharing link to the mobile terminal through the portable wifi;
and receiving a sharing response returned by the cloud server through the personal wifi, and providing the sharing link carried by the sharing response to other users.
In the method shown in fig. 2, further comprising:
receiving a downloading request of a second file to be shared, which is pointed by sharing links provided by other users, sending the downloading request to the portable wifi, so that the portable wifi detects whether the second file to be shared is stored in the portable wifi, and if the second file to be shared is stored, sending the second file to be shared to the mobile terminal; if the second file to be shared is not stored, sending a downloading request aiming at the second file to be shared to the cloud server, so that the cloud server detects whether the second file to be shared is stored in the cloud server, if the second file to be shared is stored, sending the second file to be shared to the mobile terminal through the personal wifi, and if the second file to be shared is not stored, determining the uploading progress of the second file to be shared, and sending the uploading progress of the second file to be uploaded to the mobile terminal through the wifi; the sharing link provided by other users is generated by the cloud server according to a sharing request sent by the other users for a second file to be shared which is being uploaded or is uploaded to the cloud server;
receiving a second file to be shared issued by the personal wifi when the second file to be shared is determined to be stored; or receiving a second file to be shared issued by the cloud server when the second file to be shared is determined to be stored; or receiving the uploading progress of the second file to be shared returned by the cloud server through the personal wifi when the second file to be shared is determined not to be stored.
In the process shown in figure 2 of the drawings,
after uploading the target file to the wifi, the method further comprises: disconnecting the connection with the portable wifi, and accessing the cloud server in an access mode except the portable wifi;
after accessing the cloud server through an access mode except the wifi, the method further comprises the following steps: receiving an uploading request aiming at the target file again, determining whether the target file needs to be uploaded again, if the target file needs to be uploaded again, directly uploading the target file to the cloud server according to an access mode of the access cloud server, enabling the cloud server to receive and store the target file directly uploaded by the mobile terminal, detecting the end time of the target file directly uploaded by the mobile terminal and the end time of the target file asynchronously uploaded by the portable wifi, stopping the operation of the target file asynchronously uploaded by the portable wifi when the first end of the target file directly uploaded by the mobile terminal is detected, and stopping the operation of the target file directly uploaded by the mobile terminal when the first end of the target file asynchronously uploaded by the portable wifi is detected.
In the process shown in figure 2 of the drawings,
the determining whether the target file needs to be uploaded again includes:
the uploading request is directly sent to the cloud server, so that the cloud server detects whether a target file is stored in the cloud server and whether the cloud server receives the target file uploaded by the portable wifi, and when the cloud server stores the target file, an uploading response indicating that the cloud server stores the target file is returned; when the cloud server is receiving the target file uploaded by the personal wifi, returning an uploading response indicating that the personal wifi has stored the target file;
receiving an uploading response directly returned by the cloud server, and determining that the target file does not need to be uploaded again when the uploading response indicates that the target file is stored in the cloud server; when the uploading response indicates that the uploading response of the target file has been stored in the wifi, a re-uploading confirmation request is output, if the uploading confirmation response that the indication of the user needs to be uploaded again is received, the target file is determined to need to be uploaded again, and if the uploading confirmation response that the indication of the user does not need to be uploaded again is received, the target file does not need to be uploaded again.
The embodiment of the invention also provides a file transmission device, which is applied to a mobile terminal, wherein the mobile terminal is connected to the portable wifi and is accessed to the cloud server through the portable wifi; as shown in fig. 3, the apparatus includes:
atransceiving unit 301, configured to receive an upload request for a target file;
thedetection unit 302 is used for detecting whether a target file is stored in the cloud server and the portable wifi;
theuploading unit 303 is used for asynchronously uploading the stored target file to the cloud server by the portable wifi when thedetection unit 302 detects and determines that the portable wifi has the stored target file; when thedetection unit 302 detects that the target file is not stored in the cloud server and the portable wifi, the target file is uploaded to the portable wifi, and the target file is asynchronously uploaded to the cloud server through the portable wifi.
In the device shown in figure 3 of the drawings,
the detectingunit 302 detects whether a target file is stored in the cloud server and the portable wifi, and includes:
sending an uploading request aiming at a target file to a cloud server through a personal wifi so that the cloud server detects whether the target file is stored in the cloud server and whether the cloud server receives the target file uploaded by the personal wifi, if the target file is stored in the cloud server, returning an uploading response indicating that the cloud server has stored the target file through the personal wifi, if the cloud server receives the target file uploaded by the personal wifi, returning an uploading response indicating that the personal wifi stores the target file through the personal wifi, and if not, returning an uploading response indicating that the cloud server and the personal wifi do not store the target file through the personal wifi;
after receiving an upload response returned by the cloud server via the personal wifi, thetransceiving unit 301 determines whether the target file is stored in the cloud server and the personal wifi according to the upload response;
thetransceiver unit 301 is configured to receive an upload response returned by the cloud server via the personal wifi.
In the device shown in figure 3 of the drawings,
thetransceiver unit 301 is further configured to: receiving a sharing request aiming at a first file to be shared which is being uploaded or is uploaded to a cloud server, sending the sharing request to the cloud server through a portable wifi, enabling the cloud server to generate a sharing link pointing to the first file to be shared according to the sharing request, and returning a sharing response carrying the sharing link to the mobile terminal through the portable wifi;
thetransceiver unit 301 is further configured to receive a sharing response returned by the cloud server via the personal wifi, and provide a sharing link carried by the sharing response to other users.
In the device shown in figure 3 of the drawings,
thetransceiving unit 301 is further configured to receive a download request of a second file to be shared, which is pointed by a sharing link provided by another user, and send the download request to the portable wifi, so that the portable wifi detects whether the second file to be shared is stored in the portable wifi, and if the second file to be shared is stored in the portable wifi, the second file to be shared is sent to the mobile terminal; if the second file to be shared is not stored, sending a downloading request aiming at the second file to be shared to the cloud server, so that the cloud server detects whether the second file to be shared is stored in the cloud server, if the second file to be shared is stored, sending the second file to be shared to the mobile terminal through the personal wifi, and if the second file to be shared is not stored, determining the uploading progress of the second file to be shared, and sending the uploading progress of the second file to be uploaded to the mobile terminal through the wifi; the sharing link provided by other users is generated by the cloud server according to a sharing request sent by the other users for a second file to be shared which is being uploaded or is uploaded to the cloud server;
thetransceiver unit 301 is further configured to: receiving a second file to be shared issued by the personal wifi when the second file to be shared is determined to be stored; or receiving a second file to be shared issued by the cloud server when the second file to be shared is determined to be stored; or receiving the uploading progress of the second file to be shared returned by the cloud server through the personal wifi when the second file to be shared is determined not to be stored.
The apparatus shown in fig. 3 further includes aconnection unit 304 and aconfirmation unit 305;
theconnection unit 305 is used for disconnecting the connection with the portable wifi after thetransceiving unit 301 uploads the target file to the portable wifi, and accessing the cloud server in an access mode except the portable wifi;
thetransceiving unit 301 is configured to receive an upload request for the target file again after theconnection unit 304 accesses the cloud server through an access method other than wifi;
the confirming unit 306 is configured to determine whether the target file needs to be uploaded again after thetransceiving unit 301 receives the upload request for the target file again;
theuploading unit 303 is configured to, if the determiningunit 305 determines that the target file needs to be uploaded again, directly upload the target file to the cloud server according to an access manner of accessing the cloud server, so that the cloud server receives and stores the target file directly uploaded by the mobile terminal, detect an end time of directly uploading the target file by the mobile terminal and an end time of asynchronously uploading the target file by the wifi, stop the operation of asynchronously uploading the target file by the wifi when it is detected that the target file directly uploaded by the mobile terminal is first ended, and stop the operation of directly uploading the target file by the mobile terminal when it is detected that the target file asynchronously uploaded by the wifi is first ended.
In the device shown in figure 3 of the drawings,
the determiningunit 305, determining whether the target file needs to be uploaded again, includes:
theinstruction transceiving unit 301 directly transmits the upload request to the cloud server, so that the cloud server detects whether a target file is stored in the cloud server and whether the cloud server is receiving the target file uploaded by the portable wifi, and when the cloud server has stored the target file, returns an upload response indicating that the cloud server has stored the target file; when the cloud server is receiving the target file uploaded by the personal wifi, returning an uploading response indicating that the personal wifi has stored the target file;
after thetransceiving unit 301 receives an upload response directly returned by the cloud server, when the upload response indicates that the cloud server has stored the target file, it is determined that the target file does not need to be uploaded again; when the uploading response indicates that the uploading response of the target file has been stored in the wifi, outputting a re-uploading confirmation request, if the uploading confirmation response that the user indication needs to be uploaded again is received, determining that the target file needs to be uploaded again, and if the uploading confirmation response that the user indication does not need to be uploaded again is received, determining that the target file does not need to be uploaded again;
thetransceiver unit 301 is configured to receive an upload response directly returned by the cloud server.
An embodiment of the present invention further provides an electronic device, as shown in fig. 4, where the electronic device includes: at least oneprocessor 401, and amemory 402 connected to the at least oneprocessor 401 through a bus; thememory 402 stores one or more computer programs executable by the at least oneprocessor 401; the at least oneprocessor 401, when executing the one or more computer programs, performs the steps in the file transfer method of fig. 2.
Embodiments of the present invention also provide a computer-readable storage medium, which stores one or more computer programs that, when executed by a processor, implement the steps in the file transfer method shown in fig. 2.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (11)

Translated fromChinese
1.一种文件传输系统,其特征在于,所述文件传输系统包括:移动终端、随身wifi、云服务器;所述移动终端连接到随身wifi,并通过随身wifi接入云服务器;1. a file transmission system, it is characterized in that, described file transmission system comprises: mobile terminal, portable wifi, cloud server; Described mobile terminal is connected to portable wifi, and access cloud server by portable wifi;所述移动终端,用于接收针对目标文件的上传请求,检测云服务器和随身wifi中是否存储有目标文件,当检测确定云服务器和随身wifi中均未存储目标文件时,将目标文件上传到随身wifi;The mobile terminal is used to receive an upload request for the target file, detect whether the target file is stored in the cloud server and the portable wifi, and upload the target file to the portable wifi when it is determined that neither the cloud server nor the portable wifi stores the target file. wifi;所述随身wifi,用于已存储目标文件的情况下,将目标文件异步上传至云服务器;用于未存储目标文件的情况下,接收和存储移动终端上传的目标文件,将目标文件异步上传至云服务器;The portable wifi is used for asynchronously uploading the target file to the cloud server when the target file has been stored; for receiving and storing the target file uploaded by the mobile terminal when the target file is not stored, and asynchronously uploading the target file to the cloud server. Cloud Server;所述云服务器,用于接收和存储所述随身wifi异步上传的目标文件。The cloud server is used for receiving and storing the target file asynchronously uploaded by the portable wifi.2.根据权利要求1所述的文件传输系统,其特征在于,2. The file transfer system according to claim 1, wherein,所述移动终端,检测云服务器和随身wifi中是否存储有目标文件,包括:将针对目标文件的上传请求经由随身wifi发送到云服务器,接收云服务器经由随身wifi返回的上传响应,根据上传响应确定云服务器和随身wifi中是否存储有目标文件;The mobile terminal, detecting whether the target file is stored in the cloud server and the portable wifi, includes: sending an upload request for the target file to the cloud server via the portable wifi, receiving an upload response returned by the cloud server via the portable wifi, and determining according to the upload response. Whether the target file is stored in the cloud server and portable wifi;所述云服务器,用于接收所述移动终端经由随身wifi发送的上传请求,检测云服务器中是否存储有目标文件、以及云服务器是否正在接收由随身wifi上传的目标文件,如果云服务器中已存储目标文件,则经由随身wifi返回指示云服务器已存储目标文件的上传响应,如果云服务器正在接收由随身wifi上传的目标文件,则经由随身wifi返回指示随身wifi存储有目标文件的上传响应,否则,经由随身wifi返回指示云服务器和随身wifi中均未存储目标文件的上传响应。The cloud server is used to receive an upload request sent by the mobile terminal via the portable wifi, and to detect whether the cloud server stores a target file and whether the cloud server is receiving the target file uploaded by the portable wifi. If the target file is the target file, the upload response indicating that the cloud server has stored the target file is returned via the portable wifi, if the cloud server is receiving the target file uploaded by the portable wifi, the upload response indicating that the target file is stored in the portable wifi is returned via the portable wifi, otherwise, An upload response indicating that the target file is not stored in neither the cloud server nor the portable wifi is returned via the pocket wifi.3.根据权利要求1所述的文件传输系统,其特征在于,3. The file transfer system according to claim 1, wherein,所述随身wifi,接收和存储移动终端上传的目标文件,将目标文件异步上传至云服务器,包括:接收移动终端上传的目标文件,并在检测到随身wifi中存在足够存储目标文件的空闲存储空间时,存储目标文件到空闲存储空间,并将存储在空间存储空间中的目标文件异步上传到云服务器;The portable wifi receives and stores the target file uploaded by the mobile terminal, and asynchronously uploads the target file to the cloud server, including: receiving the target file uploaded by the mobile terminal, and detecting that there is enough free storage space for storing the target file in the portable wifi When the target file is stored in the free storage space, and the target file stored in the space storage space is asynchronously uploaded to the cloud server;所述随身wifi,接收移动终端上传的目标文件后,进一步包括:在检测到随身wifi中不存在足够存储目标文件的空闲存储空间时,将目标文件同步上传到云服务器。The portable wifi, after receiving the target file uploaded by the mobile terminal, further includes: when it is detected that there is no free storage space enough to store the target file in the portable wifi, synchronously uploading the target file to the cloud server.4.根据权利要求1所述的文件传输系统,其特征在于,4. The file transfer system according to claim 1, wherein,所述移动终端,用于接收针对正在上传或已上传到云服务器的第一待分享文件的分享请求,将分享请求经由随身wifi发送到云服务器,接收云服务器经由随身wifi返回的分享响应,将分享响应携带的分享链接提供给其它用户;The mobile terminal is used to receive a sharing request for the first file to be shared that is being uploaded or has been uploaded to the cloud server, send the sharing request to the cloud server via the portable wifi, receive the sharing response returned by the cloud server via the portable wifi, and send the sharing request to the cloud server via the portable wifi. Share the link carried by the share response to other users;所述云服务器,用于接收所述移动终端经由随身wifi发送的针对第一待分享文件的分享请求,根据分享请求生成指向第一待分享文件的分享链接,将携带该分享链接的分享响应经由随身wifi返回给所述移动终端。The cloud server is configured to receive a sharing request for the first file to be shared sent by the mobile terminal via the portable wifi, generate a sharing link pointing to the first file to be shared according to the sharing request, and send the sharing response carrying the sharing link via The portable wifi is returned to the mobile terminal.5.根据权利要求4所述的文件传输系统,其特征在于,5. The file transfer system according to claim 4, wherein,所述移动终端,用于接收针对其它用户提供的分享链接所指向的第二待分享文件的下载请求,将下载请求发送到随身wifi,其中,其它用户提供的分享链接是云服务器根据其它用户针对正在上传或已上传到云服务器的第二待分享文件发送的分享请求生成的;用于接收随身wifi在确定存储有第二待分享文件时下发的第二待分享文件;用于接收云服务器在确定存储有第二待分享文件时下发的第二待分享文件;用于接收云服务器在确定未存储第二待分享文件时经由随身wifi返回的第二待分享文件的上传进度;The mobile terminal is configured to receive a download request for the second file to be shared pointed to by the sharing link provided by other users, and send the download request to the portable wifi, wherein the sharing link provided by the other user is the cloud server according to the other user's target. Generated by the sharing request sent by the second file to be shared that is being uploaded or has been uploaded to the cloud server; used to receive the second file to be shared sent by the portable wifi when it is determined that the second file to be shared is stored; It is determined that the second to-be-shared file issued when the second to-be-shared file is stored; for receiving the upload progress of the second to-be-shared file returned by the cloud server via the portable wifi when it is determined that the second to-be-shared file is not stored;所述随身wifi,用于接收所述移动终端发送的针对第二待分享文件的下载请求,检测随身wifi中是否存储有第二待分享文件,如果存储有第二待分享文件,则将第二待分享文件下发到移动终端,如果未存储第二待分享文件,则将针对第二待分享文件的下载请求发送到云服务器;The portable wifi is used to receive the download request for the second file to be shared sent by the mobile terminal, to detect whether the second file to be shared is stored in the portable wifi, and if the second file to be shared is stored, the second file to be shared is stored. The file to be shared is delivered to the mobile terminal, and if the second file to be shared is not stored, a download request for the second file to be shared is sent to the cloud server;所述云服务器,用于接收随身wifi发送的针对第二待分享文件的下载请求,检测云服务器中是否存储有第二待分享文件,如果存储有第二待分享文件,则将第二待分享文件经由随身wifi下发到移动终端,否则,确定第二待分享文件的上传进度,并将第二待上传文件的上传进度经由随着wifi发送给移动终端。The cloud server is configured to receive a download request for the second file to be shared sent by the portable wifi, detect whether the second file to be shared is stored in the cloud server, and if the second file to be shared is stored, the second file to be shared is stored. The file is delivered to the mobile terminal via the portable wifi, otherwise, the upload progress of the second file to be shared is determined, and the upload progress of the second file to be uploaded is sent to the mobile terminal via the wifi.6.根据权利要求1所述的文件传输系统,其特征在于,6. The file transfer system according to claim 1, wherein,所述移动终端,将目标文件上传到随身wifi之后,进一步包括:断开与随身wifi的连接,通过除随身wifi以外的接入方式接入云服务器;The mobile terminal, after uploading the target file to the portable wifi, further includes: disconnecting the connection with the portable wifi, and accessing the cloud server through an access method other than the portable wifi;所述移动终端,通过除随身wifi以外的接入方式接入云服务器后,进一步包括:再次接收针对目标文件的上传请求,确定是否需要再次上传目标文件,如果需要再次上传目标文件,则根据接入云服务器的接入方式向云服务器直接上传目标文件;The mobile terminal, after accessing the cloud server through an access method other than portable wifi, further includes: receiving an upload request for the target file again, determining whether the target file needs to be uploaded again, and if the target file needs to be uploaded again, according to the connection. The access method of entering the cloud server directly uploads the target file to the cloud server;所述云服务器,用于接收和存储移动终端直接上传的目标文件;用于检测移动终端直接上传目标文件的结束时间和随身wifi异步上传目标文件的结束时间,当检测到移动终端直接上传目标文件最先结束时,停止随身wifi异步上传目标文件的操作,当检测到随身wifi异步上传目标文件最先结束时,停止移动终端直接上传目标文件的操作。The cloud server is used to receive and store the target file directly uploaded by the mobile terminal; it is used to detect the end time of the mobile terminal directly uploading the target file and the end time of the portable wifi asynchronous uploading the target file. When it is detected that the mobile terminal directly uploads the target file When it ends first, stop the operation of uploading the target file asynchronously through the portable wifi; when it is detected that the asynchronous uploading of the target file through the portable wifi ends first, stop the operation of directly uploading the target file by the mobile terminal.7.根据权利要求6所述的文件传输系统,其特征在于,7. The file transfer system according to claim 6, wherein,所述移动终端,确定是否需要再次上传目标文件,包括:将上传请求直接发送到云服务器,接收云服务器直接返回的上传响应,当上传响应指示云服务器已存储目标文件时,确定不需要再次上传目标文件;当上传响应指示随身wifi已存储目标文件的上传响应时,输出再次上传确认请求,如果接收到用户的指示需要再次上传的上传确认响应,则确定需要再次上传目标文件,如果接收到用户的指示不需要再次上传的上传确认响应,则确定不需要再次上传目标文件;The mobile terminal determining whether the target file needs to be uploaded again includes: directly sending the upload request to the cloud server, receiving an upload response directly returned by the cloud server, and when the upload response indicates that the cloud server has stored the target file, determining that it is not necessary to upload the target file again target file; when the upload response indicates that the upload response of the target file has been stored in the portable wifi, a re-upload confirmation request is output. If there is an upload confirmation response indicating that re-uploading is not required, it is determined that the target file does not need to be re-uploaded;所述云服务器,用于接收移动终端直接发送的上传请求,检测云服务器中是否存储有目标文件、以及云服务器是否正在接收由随身wifi上传的目标文件,当云服务器已存储目标文件时,返回指示云服务器已存储目标文件的上传响应;当云服务器正在接收由随身wifi上传的目标文件时,返回指示随身wifi已存储目标文件的上传响应。The cloud server is used to receive the upload request directly sent by the mobile terminal, detect whether the target file is stored in the cloud server, and whether the cloud server is receiving the target file uploaded by the portable wifi, when the cloud server has stored the target file, returns The upload response indicating that the cloud server has stored the target file; when the cloud server is receiving the target file uploaded by the portable wifi, it returns an upload response indicating that the portable wifi has stored the target file.8.一种文件传输方法,应用于移动终端,其特征在于,移动终端连接到随身wifi,并通过随身wifi接入云服务器;该方法包括:8. A file transmission method, applied to a mobile terminal, wherein the mobile terminal is connected to a portable wifi, and accesses a cloud server through the portable wifi; the method comprises:接收针对目标文件的上传请求;Receive upload requests for target files;检测云服务器和随身wifi中是否存储有目标文件;Detect whether the target file is stored in the cloud server and portable wifi;当检测确定随身wifi已存储目标文件时,由随身wifi将存储的目标文件异步上传到云服务器;When the detection determines that the target file has been stored in the portable wifi, the stored target file is asynchronously uploaded to the cloud server by the portable wifi;当检测确定云服务器和随身wifi中均未存储目标文件时,将目标文件上传到随身wifi,由随身wifi将目标文件异步上传到云服务器。When the detection determines that the target file is not stored in the cloud server and the portable wifi, the target file is uploaded to the portable wifi, and the portable wifi asynchronously uploads the target file to the cloud server.9.一种文件传输装置,应用于移动终端,其特征在于,移动终端连接到随身wifi,并通过随身wifi接入云服务器;该装置包括:9. A file transmission device, applied to a mobile terminal, wherein the mobile terminal is connected to a portable wifi, and accesses a cloud server through the portable wifi; the device comprises:收发单元,用于接收针对目标文件的上传请求;a transceiver unit for receiving an upload request for the target file;检测单元,用于检测云服务器和随身wifi中是否存储有目标文件;The detection unit is used to detect whether the target file is stored in the cloud server and portable wifi;上传单元,用于当检测单元检测确定随身wifi已存储目标文件时,由随身wifi将存储的目标文件异步上传到云服务器;当检测单元检测确定云服务器和随身wifi中均未存储目标文件时,将目标文件上传到随身wifi,由随身wifi将目标文件异步上传到云服务器。The uploading unit is used for asynchronously uploading the stored target file to the cloud server by the portable wifi when the detection unit detects and determines that the target file has been stored in the portable wifi; when the detection unit detects and determines that the target file is not stored in the cloud server and the portable wifi, Upload the target file to the portable wifi, and the portable wifi will asynchronously upload the target file to the cloud server.10.一种电子设备,包括:至少一个处理器,以及与所述至少一个处理器通过总线相连的存储器;所述存储器存储有可被所述至少一个处理器执行的一个或多个计算机程序;其特征在于,所述至少一个处理器执行所述一个或多个计算机程序时实现权利要求8所述的方法中的步骤。10. An electronic device comprising: at least one processor, and a memory connected to the at least one processor through a bus; the memory stores one or more computer programs executable by the at least one processor; characterized in that the at least one processor implements the steps of the method of claim 8 when executing the one or more computer programs.11.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储一个或多个计算机程序,所述一个或多个计算机程序被处理器执行时实现权利要求8所述的方法中的步骤。11. A computer-readable storage medium, characterized in that, the computer-readable storage medium stores one or more computer programs, and when the one or more computer programs are executed by a processor, the method of claim 8 is implemented steps in .
CN202110054082.8A2021-01-152021-01-15File transmission method and device, electronic equipment and storage mediumActiveCN113810454B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110054082.8ACN113810454B (en)2021-01-152021-01-15File transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110054082.8ACN113810454B (en)2021-01-152021-01-15File transmission method and device, electronic equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN113810454Atrue CN113810454A (en)2021-12-17
CN113810454B CN113810454B (en)2025-01-17

Family

ID=78892879

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110054082.8AActiveCN113810454B (en)2021-01-152021-01-15File transmission method and device, electronic equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN113810454B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114390044A (en)*2021-12-292022-04-22杭州华橙软件技术有限公司File uploading method, system, device and storage medium
US20250103555A1 (en)*2023-09-222025-03-27Capital One Services, LlcSystems and methods for optimizing data for a serverless file system

Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102685223A (en)*2012-04-282012-09-19广州市动景计算机科技有限公司Cloud-storage-based file processing method and system
CN103491143A (en)*2013-09-052014-01-01新浪网技术(中国)有限公司File sharing method and device
CN103581272A (en)*2012-08-082014-02-12腾讯科技(深圳)有限公司File transfer method and device
CN104243572A (en)*2014-09-102014-12-24北京奇虎科技有限公司Data transmission method and device based on carry-on WiFi network
CN105100223A (en)*2015-07-012015-11-25北京奇虎科技有限公司File sharing method, device and system based on cloud storage
EP2958298A1 (en)*2013-04-022015-12-23Huawei Technologies Co., Ltd.File uploading method in cloud storage, client, application server, and cloud storage system
US20160315997A1 (en)*2013-12-122016-10-27Beijing Qihoo Technology Company LimitedFile transfer method, device, and system
CN106507325A (en)*2016-10-312017-03-15中国联合网络通信集团有限公司 A portable data upload method, Lora gateway and portable terminal
CN107770229A (en)*2016-08-232018-03-06中国电信股份有限公司High in the clouds sharing files method, system and Cloud Server
CN108810114A (en)*2018-05-212018-11-13福建省数字福建云计算运营有限公司A kind of sharing method and terminal of family's cloud disc file
CN110703980A (en)*2018-07-092020-01-17网宿科技股份有限公司 A file transmission method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102685223A (en)*2012-04-282012-09-19广州市动景计算机科技有限公司Cloud-storage-based file processing method and system
CN103581272A (en)*2012-08-082014-02-12腾讯科技(深圳)有限公司File transfer method and device
EP2958298A1 (en)*2013-04-022015-12-23Huawei Technologies Co., Ltd.File uploading method in cloud storage, client, application server, and cloud storage system
CN103491143A (en)*2013-09-052014-01-01新浪网技术(中国)有限公司File sharing method and device
US20160315997A1 (en)*2013-12-122016-10-27Beijing Qihoo Technology Company LimitedFile transfer method, device, and system
CN104243572A (en)*2014-09-102014-12-24北京奇虎科技有限公司Data transmission method and device based on carry-on WiFi network
CN105100223A (en)*2015-07-012015-11-25北京奇虎科技有限公司File sharing method, device and system based on cloud storage
CN107770229A (en)*2016-08-232018-03-06中国电信股份有限公司High in the clouds sharing files method, system and Cloud Server
CN106507325A (en)*2016-10-312017-03-15中国联合网络通信集团有限公司 A portable data upload method, Lora gateway and portable terminal
CN108810114A (en)*2018-05-212018-11-13福建省数字福建云计算运营有限公司A kind of sharing method and terminal of family's cloud disc file
CN110703980A (en)*2018-07-092020-01-17网宿科技股份有限公司 A file transmission method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114390044A (en)*2021-12-292022-04-22杭州华橙软件技术有限公司File uploading method, system, device and storage medium
CN114390044B (en)*2021-12-292024-05-14杭州华橙软件技术有限公司File uploading method, system, equipment and storage medium
US20250103555A1 (en)*2023-09-222025-03-27Capital One Services, LlcSystems and methods for optimizing data for a serverless file system

Also Published As

Publication numberPublication date
CN113810454B (en)2025-01-17

Similar Documents

PublicationPublication DateTitle
CN113568884B (en) A file management method, device, electronic device and storage medium
CN110012083B (en)Data transmission method, server and data transmission device
CN106533932B (en)A kind of method and apparatus for pushing instant message
JP2013503524A (en) Service content acquisition apparatus, method and related apparatus using personal network device
CN102821057A (en)File sending method, device and system
CN113810454A (en)File transmission method and device, electronic equipment and storage medium
JP2009524986A (en) System and method for providing data to a wireless communication device
JP2013504806A (en) Method, apparatus and system for file transfer based on file directory
KR20220006605A (en) Cloud communication method and device, user device, network device
EP3232631B1 (en)Content sharing method and server
CN106357814A (en)File processing method, agency server side end and client side
US20230007083A1 (en)Internet of things communication method and apparatus
CN114020483B (en) Data transmission method and device, drone control system and drone
CN107612831B (en) A method and device for transmitting data message for accessing source station
CN102025730A (en)Data transmission device based on HTTP protocol and implementation method thereof
CN110417861A (en)A kind of information-pushing method and relevant apparatus
CN114025016B (en)Data forwarding method, device and storage medium
CN105554112B (en)The transmission method and system of chatting facial expression
KR100417760B1 (en)Method and system for storing and forwarding Data to keep Direct Data communication sustainable between wireless telecommunication devices
KR101231203B1 (en)System and method for network communicating between a communication device and information device
CN109309611B (en)File receiving mutual exclusion realization method and system in multi-terminal point-to-point file transmission
KR101330051B1 (en)apparatus, and recording medium for file transfer to signal reception impossible terminal
CN113472829A (en)Resource sharing method and device, master device, slave device and chip system
CN111128184A (en)Voice interaction method and device between devices
CN104618517A (en)Message pushing method, system and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp