CN112422632A - File uploading control method and device, electronic equipment and storage medium - Google Patents

File uploading control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112422632A
CN112422632A CN202011159393.2A CN202011159393A CN112422632A CN 112422632 A CN112422632 A CN 112422632A CN 202011159393 A CN202011159393 A CN 202011159393A CN 112422632 A CN112422632 A CN 112422632A
Authority
CN
China
Prior art keywords
uploading
strategy
file
candidate file
files
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
CN202011159393.2A
Other languages
Chinese (zh)
Other versions
CN112422632B (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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202011159393.2A priority Critical patent/CN112422632B/en
Publication of CN112422632A publication Critical patent/CN112422632A/en
Application granted granted Critical
Publication of CN112422632B publication Critical patent/CN112422632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure relates to a file uploading control method and device, electronic equipment, a storage medium and a storage medium. The method comprises the following steps: when the trigger operation of starting an uploading interface is detected, acquiring a candidate file to be uploaded and acquiring an uploading strategy of the candidate file; and after the connection with a server, uploading the candidate file to the server based on the uploading strategy. According to the embodiment, different uploading strategies can be selected according to different candidate files, uploading preference of a user can be met, and experience of using the electronic equipment to backup files is improved.

Description

File uploading control method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of control technologies, and in particular, to a file upload control method and apparatus, an electronic device, and a storage medium.
Background
At present, with the popularization of mobile terminals, personal data stored in the mobile terminals are also increasing dramatically. Together with the development of cloud technology, more and more users tend to cloud-backup personal data. However, the existing uploading method is limited to uploading according to the sequence selected by the user, which results in poor user backup experience.
Disclosure of Invention
The present disclosure provides a file upload control method and apparatus, an electronic device, a storage medium, and a storage medium, to solve the deficiencies of the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a file upload control method, including:
when the trigger operation of starting an uploading interface is detected, acquiring a candidate file to be uploaded and acquiring an uploading strategy of the candidate file;
and after the connection with a server, uploading the candidate file to the server based on the uploading strategy.
Optionally, obtaining an upload policy of the candidate file includes:
acquiring an uploading strategy interface after detecting the triggering operation representing the selection of the uploading strategy in the uploading interface; the uploading strategy interface comprises a plurality of uploading strategies;
and when the trigger operation of selecting one uploading strategy in the uploading strategy interface is detected, acquiring the uploading strategy of the candidate file.
Optionally, obtaining an upload policy of the candidate file includes:
and when the uploading strategy in the uploading interface is not triggered within the preset time, acquiring a default uploading strategy or a strategy used in the last file uploading process and taking the strategy as an uploading strategy of the candidate file.
Optionally, the upload policy includes at least one of:
uploading according to the positive sequence of the selection sequence, uploading according to the reverse sequence of the selection sequence, uploading according to the size of the files in a sequencing mode, uploading according to the type of the files in a sequencing mode, and adjusting the number of the uploaded files according to the network speed.
Optionally, when the uploading policy includes adjusting the number of uploaded files according to a network speed, uploading the candidate files to the server based on the uploading policy includes:
acquiring the real-time network speed of the electronic equipment and acquiring the corresponding relation between the preset uploading rate and the number of uploaded files;
determining the target number of the uploading candidate files according to the real-time network speed and the corresponding relation;
and adjusting the number of the parallel uploaded files to the target number.
Optionally, the method further comprises:
after the completion of uploading the candidate file is detected, determining whether a new candidate file exists;
if yes, continuing to execute the step of uploading the candidate file to a server based on the uploading strategy; if not, the uploading is finished.
According to a second aspect of the embodiments of the present disclosure, there is provided a file upload control apparatus, the apparatus including:
the candidate file acquisition module is used for acquiring a candidate file to be uploaded and acquiring an uploading strategy of the candidate file after the trigger operation for representing the starting of the uploading interface is detected;
and the candidate file uploading module is used for uploading the candidate file to the server based on the uploading strategy after the candidate file is connected with the server.
Optionally, the candidate file obtaining module includes:
the uploading interface acquiring unit is used for acquiring an uploading strategy interface after detecting the triggering operation for representing and selecting the uploading strategy in the uploading interface; the uploading strategy interface comprises a plurality of uploading strategies;
and the uploading strategy acquiring unit is used for acquiring the uploading strategies of the candidate files after detecting the triggering operation for representing and selecting one of the uploading strategies in the uploading strategy interface.
Optionally, the candidate file obtaining module includes:
and the uploading strategy acquiring unit is used for acquiring a default uploading strategy or a strategy used in the last file uploading process and taking the strategy as an uploading strategy of the candidate file after detecting that the uploading strategy representing the uploading interface is not triggered within the preset time length.
Optionally, the upload policy includes at least one of:
uploading according to the positive sequence of the selection sequence, uploading according to the reverse sequence of the selection sequence, uploading according to the size of the files in a sequencing mode, uploading according to the type of the files in a sequencing mode, and adjusting the number of the uploaded files according to the network speed.
Optionally, when the uploading policy includes adjusting the number of uploaded files according to a network speed, the candidate file uploading module includes:
the device comprises an uploading rate acquisition unit, a file processing unit and a file processing unit, wherein the uploading rate acquisition unit is used for acquiring the real-time network speed of the electronic equipment and acquiring the corresponding relation between the preset uploading rate and the number of uploaded files;
the target number determining unit is used for determining the target number of the uploading candidate files according to the real-time network speed and the corresponding relation;
and the candidate file uploading unit module is used for adjusting the number of the parallel uploading files to the target number.
Optionally, the method further comprises:
the candidate file determining module is used for determining whether a new candidate file exists or not after the candidate file is detected to be uploaded;
the candidate file uploading module is further used for continuously uploading the candidate files to a server based on the uploading strategy when new candidate files exist; and for ending the upload when no new candidate file exists.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing a computer program executable by the processor;
wherein the processor is configured to execute the computer program in the memory to implement the above-described method.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, in which an executable computer program is capable of implementing the above-mentioned method when executed by a processor.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
as can be seen from the foregoing embodiments, in the embodiments of the present disclosure, after a trigger operation for characterizing to start an upload interface is detected, a candidate file to be uploaded and an upload policy of the candidate file may be acquired; and then, after connecting with a server, uploading the candidate file to the server based on the uploading strategy. Therefore, different uploading strategies can be selected according to different candidate files, uploading preference of a user can be met, and experience of using the electronic equipment to backup files is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a file upload control method according to an exemplary embodiment.
FIG. 2 is a diagram illustrating the effects of an upload interface, according to an exemplary embodiment.
Fig. 3 is a diagram illustrating an effect of an upload policy interface according to an example embodiment.
Fig. 4 is a schematic diagram illustrating an architecture of an upload network between an electronic device and a server according to an example embodiment.
Fig. 5 is a flowchart illustrating another file upload control method according to an example embodiment.
Fig. 6 is a block diagram illustrating a file upload control apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The following exemplary described embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure as recited in the claims below.
To solve the above technical problem, this embodiment provides a file upload control method, which can be applied to an electronic device, where the electronic device may include but is not limited to: smart phones, tablet computers and the like. The electronic device may upload files, including but not limited to video, pictures, audio, text, and the like. Fig. 1 is a flowchart illustrating a file upload control method according to an exemplary embodiment, and referring to fig. 1, a file upload control method includes steps 11 to 12, in which:
in step 11, after a trigger operation for characterizing the opening of the uploading interface is detected, a candidate file to be uploaded is obtained, and an uploading policy of the candidate file is obtained.
In this embodiment, an APP with a cloud backup function may be installed in the electronic device. In the process of using the application program, the user may use the cloud backup function, that is, start the upload interface, as illustrated in fig. 2. In the process of using the application program, the electronic device may detect, in real time or according to a preset interval, whether a user performs a trigger operation on the electronic device, where the trigger operation may include a trigger operation for characterizing to open an upload interface. And when the trigger operation for starting the uploading interface is detected, the electronic equipment can acquire the candidate file to be uploaded. In an example, the electronic device may directly read the upload file list, and take the files in the upload file list as candidate files to be uploaded. In another example, the electronic device may detect an operation of a user, and use at least one file selected in the operation as a candidate file to be uploaded, and/or use a file that has not been uploaded last time together as a candidate file.
In this embodiment, the electronic device may obtain the uploading policy of the candidate file, and the uploading policy may include:
in an example, the electronic device may detect, in real time or at preset intervals, whether a user performs a trigger operation on the electronic device, where the trigger operation may include a trigger operation that characterizes a selection of an upload policy interface. When a trigger operation characterizing the selection of the upload policy interface is detected, the electronic device may jump to the upload policy interface as shown in fig. 3. Referring to fig. 3, an upload policy interface may include an option button for triggering various upload policies, where the upload policies include at least one of: uploading according to the positive sequence of the selection sequence, uploading according to the reverse sequence of the selection sequence, uploading according to the size of the files in a sequencing mode, uploading according to the type of the files in a sequencing mode, and adjusting the number of the uploaded files according to the network speed.
In this example, uploading the policy content may include:
(1) uploading in the order selected by the user in the forward or reverse order.
The positive sequence means: a file selected by a user is uploaded for the first time; and finally uploading the selected file. And so on.
The reverse order means: the user first selects the file and finally uploads the file. And uploading the selected file for the first time. And so on.
(2) And uploading the files in the size order.
The large size means: uploading the file with the largest size; the file is smallest in size and is uploaded finally. And so on.
Small size means first: uploading the file with the smallest size at first; the file is the largest in size and is uploaded finally. By analogy with that
(3) Uploading is preferentially carried out according to the type of the file.
Video priority means: the file type is video and is uploaded first. And then arranging the components according to a set sequence.
The picture priority means: the file type is picture, uploaded first. And then arranging the components according to a set sequence.
(4) And controlling the uploading queue according to the network speed.
And in the uploading queue, a multithreading uploading mode is adopted, namely a plurality of files are uploaded simultaneously. But at low rates, the multi-threaded approach reduces success rates. It is therefore possible to choose whether to dynamically adjust the number of files uploaded in parallel according to the upload rate.
Adjusting finger opening according to the network speed: dynamically adjusting the number of files uploaded in parallel according to the network speed; when the network speed is lower than the network speed threshold value, the number of uploaded files is reduced; and increasing the number of uploaded files when the network speed exceeds the network speed threshold value.
Adjusting the closing finger according to the network speed: the file is uploaded keeping a constant number of files.
Thereafter, the electronic device may continue to detect the user's trigger operation. When the trigger operation for representing selection of the uploading policy option is detected, the electronic device may acquire the uploading policy corresponding to the trigger operation, that is, the uploading policy of the candidate file.
In another example, the electronic device may detect, in real time or at preset intervals, whether a user triggers an operation of the electronic device, count time from detection of a candidate file to be uploaded selected by the user or count time from detection of the user opening an upload interface, and when the count time exceeds a preset time (e.g., 3 seconds), that is, an upload policy in the upload interface is not triggered within the preset time, the electronic device may confirm that the user does not perform the triggering operation, and at this time, a default upload policy or a policy used in the last file upload may be obtained and used as an upload policy of the candidate file. The default uploading strategy can be preset in the configuration information by the user; the strategy used in the last file uploading process can be saved when the user selects the uploading strategy or the uploading strategy of this time can be saved after the file uploading process is finished.
It should be noted that, the time for the electronic device to acquire the uploading policy may be before or after the time for the candidate file, or both, and the corresponding solutions fall within the scope of the present disclosure.
In step 12, after connecting with a server, uploading the candidate file to the server based on the uploading policy.
In this embodiment, after the candidate file and the uploading policy are acquired, the electronic device may detect a connection state between the electronic device and the server. Wherein at least one of the following communication modules can be arranged in the electronic equipment: bluetooth module, WiFi module, mobile communication module, etc., then the connection means may include, but is not limited to: bluetooth connection, WiFi connection, mobile network connection. The electronic device can sequentially switch and connect the communication modules according to a preset sequence. When detecting that one of the communication modules is connected with the server, the electronic device may establish an upload architecture with the server as shown in fig. 4, and at this time, the electronic device may upload the candidate file to the server based on the policy.
In a scenario that the upload policy is whether to control the upload queue according to the network speed, the upload policy interface may be provided with an on button for adjusting the network speed and an off button for adjusting the network speed as shown in fig. 3. When the electronic device detects that the user triggers and operates the gateway button adjusted according to the network speed, the electronic device may determine that the uploading policy of the electronic device is a policy for controlling the uploading queue without pressing the network speed, that is, the candidate files are uploaded in parallel according to a fixed number. When the electronic device detects that the user triggers and operates the above-mentioned on-button adjustment according to the network speed, the electronic device may determine that the upload policy of the electronic device is a policy for controlling the upload queue according to the network speed.
In this scenario, the electronic device may obtain a real-time network speed of the electronic device, and obtain a corresponding relationship between a preset upload rate and the number of parallel uploaded files.
The corresponding relation between the uploading rate and the number of the parallel uploading files can be set according to a specific scene. For example, the number of uploaded files may include 1 to 10, the uploading rate may be from 0 to N MB, and assuming that each rate interval may increase or decrease 2 uploaded files, the uploading rate differences may be divided into 5, that is: the rate interval is 1, 0-N/5 MB, and the maximum uploading quantity is 2; the rate interval is 2, N/5 MB-2N/5 MB, and the maximum uploading quantity is 4; the rate interval is 3, 2N/5 MB-3N/5 MB, and the maximum uploading quantity is 6; the rate interval is 4, 3/5 MB-4N/5 MB, and the maximum uploading quantity is 8; the rate interval is 5, 4N/5 MB-5N/5 MB, and the maximum uploading quantity is 10. In practical applications, each rate region may adjust one upload file, or multiple upload files, and the scheme of the present disclosure may also be implemented, and the corresponding scheme falls within the protection scope of the present disclosure.
Then, the electronic device may determine the target number of the parallel uploading candidate files according to the real-time network speed and the corresponding relationship. For example, if the real-time network speed is N/2MB, the maximum number of uploaded files can be determined to be 6 according to the corresponding relationship. Thereafter, the electronic device may adjust the number of parallel uploaded files to a target number. If the number of the files uploaded in parallel is 8 before, 2 candidate files are subtracted, or if the number of the files uploaded in parallel is 4 before, 2 candidate files are added. Therefore, the number of the files to be uploaded in parallel can be dynamically adjusted according to the real-time network speed of the electronic equipment, each candidate file can be guaranteed to occupy a large enough bandwidth to be uploaded, the uploading time of a single candidate file is shortened, and the uploading efficiency is favorably improved.
In an embodiment, upon detecting that the candidate file is completely uploaded, the electronic device may determine whether a new candidate file exists, which may be a file that the user newly appends during the candidate file process prior to the uploading. When a new candidate file exists, the electronic device may continue to upload the candidate file according to step 12; when no new candidate file exists, the electronic device may end the upload. In practical application, the electronic device may further generate a prompt message indicating that the file uploading is completed, so as to remind the user.
Therefore, in the embodiment of the disclosure, after a trigger operation for characterizing the starting of an uploading interface is detected, a candidate file to be uploaded and an uploading strategy of the candidate file are obtained; and then, after connecting with a server, uploading the candidate file to the server based on the uploading strategy. Therefore, different uploading strategies can be selected according to different candidate files, uploading preference of a user can be met, and experience of using the electronic equipment to backup files is improved.
The following describes a specific flow of the file upload control method with reference to a scenario, with reference to fig. 5:
1. and the user selects a file to be uploaded and inputs the file to the uploading engine. The upload engine may be a predefined upload component, thread, or module.
2. And reading the uploading file list and the uploading strategy by the uploading engine, and selecting a default uploading strategy if the uploading strategy is not changed by the user.
3. And the uploading engine establishes network connection with the server. And performing a file upload operation. When the uploading strategy is to adjust the data volume of the uploaded files according to the network speed, the network speed can be monitored in real time.
4. And (5) finishing the uploading operation, judging whether the newly added uploaded file exists or not, if so, jumping back to the step 2, and if not, ending the uploading process.
Fig. 6 is a block diagram illustrating a file upload control apparatus according to an exemplary embodiment, referring to fig. 6, a file upload control apparatus including:
the candidate file acquisition module 61 is configured to acquire a candidate file to be uploaded and an upload policy of the candidate file when a trigger operation for characterizing that an upload interface is started is detected;
and a candidate file uploading module 62, configured to upload the candidate file to the server based on the uploading policy after connecting with the server.
In one embodiment, the candidate file obtaining module includes:
the uploading interface acquiring unit is used for acquiring an uploading strategy interface after detecting the triggering operation for representing and selecting the uploading strategy in the uploading interface; the uploading strategy interface comprises a plurality of uploading strategies;
and the uploading strategy acquiring unit is used for acquiring the uploading strategies of the candidate files after detecting the triggering operation for representing and selecting one of the uploading strategies in the uploading strategy interface.
In one embodiment, the candidate file obtaining module includes:
and the uploading strategy acquiring unit is used for acquiring a default uploading strategy or a strategy used in the last file uploading process and taking the strategy as an uploading strategy of the candidate file after detecting that the uploading strategy representing the uploading interface is not triggered within the preset time length.
Optionally, the upload policy includes at least one of:
uploading according to the positive sequence of the selection sequence, uploading according to the reverse sequence of the selection sequence, uploading according to the size of the files in a sequencing mode, uploading according to the type of the files in a sequencing mode, and adjusting the number of the uploaded files according to the network speed.
Optionally, when the uploading policy includes adjusting the number of uploaded files according to a network speed, the candidate file uploading module includes:
the device comprises an uploading rate acquisition unit, a file processing unit and a file processing unit, wherein the uploading rate acquisition unit is used for acquiring the real-time network speed of the electronic equipment and acquiring the corresponding relation between the preset uploading rate and the number of uploaded files;
the target number determining unit is used for determining the target number of the uploading candidate files according to the real-time network speed and the corresponding relation;
and the candidate file uploading unit module is used for adjusting the number of the parallel uploading files to the target number.
In one embodiment, the method further comprises:
the candidate file determining module is used for determining whether a new candidate file exists or not after the candidate file is detected to be uploaded;
the candidate file uploading module is further used for continuously uploading the candidate files to a server based on the uploading strategy when new candidate files exist; and for ending the upload when no new candidate file exists.
It can be understood that the apparatus provided in the embodiments of the present disclosure corresponds to the method described above, and specific contents may refer to the contents of each embodiment of the method, which are not described herein again.
In an exemplary embodiment, there is also provided an electronic device including:
a processor;
a memory for storing a computer program executable by the processor;
wherein the processor is configured to execute the computer program in the memory to implement the steps of the method of fig. 1.
In an exemplary embodiment, there is also provided a computer readable storage medium comprising executable instructions, such as a memory including instructions, the executable computer program being executable by a processor to implement the steps of the method as described in fig. 1. The readable storage medium may be, among others, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A file uploading control method is characterized by comprising the following steps:
when the trigger operation of starting an uploading interface is detected, acquiring a candidate file to be uploaded and acquiring an uploading strategy of the candidate file;
and after the connection with a server, uploading the candidate file to the server based on the uploading strategy.
2. The method of claim 1, wherein obtaining the uploading policy of the candidate file comprises:
acquiring an uploading strategy interface after detecting the triggering operation representing the selection of the uploading strategy in the uploading interface; the uploading strategy interface comprises a plurality of uploading strategies;
and when the trigger operation of selecting one uploading strategy in the uploading strategy interface is detected, acquiring the uploading strategy of the candidate file.
3. The method of claim 1, wherein obtaining the uploading policy of the candidate file comprises:
and when the uploading strategy in the uploading interface is not triggered within the preset time, acquiring a default uploading strategy or a strategy used in the last file uploading process and taking the strategy as an uploading strategy of the candidate file.
4. The method of claim 1, wherein the upload policy comprises at least one of:
uploading according to the positive sequence of the selection sequence, uploading according to the reverse sequence of the selection sequence, uploading according to the size of the files in a sequencing mode, uploading according to the type of the files in a sequencing mode, and adjusting the number of the uploaded files according to the network speed.
5. The method of claim 1, wherein uploading the candidate file to the server based on the upload policy when the upload policy includes adjusting a number of uploaded files by a network speed comprises:
acquiring the real-time network speed of the electronic equipment and acquiring the corresponding relation between the preset uploading rate and the number of the parallel uploaded files;
determining the target number of the parallel uploading candidate files according to the real-time network speed and the corresponding relation;
and adjusting the number of the parallel uploaded files to the target number.
6. The method of claim 1, further comprising:
after the completion of uploading the candidate file is detected, determining whether a new candidate file exists;
if yes, continuing to execute the step of uploading the candidate file to a server based on the uploading strategy; if not, the uploading is finished.
7. A file upload control apparatus, characterized in that the apparatus comprises:
the candidate file acquisition module is used for acquiring a candidate file to be uploaded and acquiring an uploading strategy of the candidate file after the trigger operation for representing the starting of the uploading interface is detected;
and the candidate file uploading module is used for uploading the candidate file to the server based on the uploading strategy after the candidate file is connected with the server.
8. The apparatus of claim 7, wherein the candidate file obtaining module comprises:
the uploading interface acquiring unit is used for acquiring an uploading strategy interface after detecting the triggering operation for representing and selecting the uploading strategy in the uploading interface; the uploading strategy interface comprises a plurality of uploading strategies;
and the uploading strategy acquiring unit is used for acquiring the uploading strategies of the candidate files after detecting the triggering operation for representing and selecting one of the uploading strategies in the uploading strategy interface.
9. The apparatus of claim 7, wherein the candidate file obtaining module comprises:
and the uploading strategy acquiring unit is used for acquiring a default uploading strategy or a strategy used in the last file uploading process and taking the strategy as an uploading strategy of the candidate file after detecting that the uploading strategy representing the uploading interface is not triggered within the preset time length.
10. The apparatus of claim 6, wherein the upload policy comprises at least one of:
uploading according to the positive sequence of the selection sequence, uploading according to the reverse sequence of the selection sequence, uploading according to the size of the files in a sequencing mode, uploading according to the type of the files in a sequencing mode, and adjusting the number of the uploaded files according to the network speed.
11. The apparatus of claim 6, wherein when the upload policy comprises adjusting the number of uploaded files according to a network speed, the candidate file upload module comprises:
the device comprises an uploading rate acquisition unit, a file processing unit and a file processing unit, wherein the uploading rate acquisition unit is used for acquiring the real-time network speed of the electronic equipment and acquiring the corresponding relation between the preset uploading rate and the number of uploaded files;
the target number determining unit is used for determining the target number of the uploading candidate files according to the real-time network speed and the corresponding relation;
and the candidate file uploading unit module is used for adjusting the number of the parallel uploading files to the target number.
12. The apparatus of claim 7, further comprising:
the candidate file determining module is used for determining whether a new candidate file exists or not after the candidate file is detected to be uploaded;
the candidate file uploading module is further used for continuously uploading the candidate files to a server based on the uploading strategy when new candidate files exist; and for ending the upload when no new candidate file exists.
13. An electronic device, comprising:
a processor;
a memory for storing a computer program executable by the processor;
wherein the processor is configured to execute the computer program in the memory to implement the method of any of claims 1 to 6.
14. A computer-readable storage medium, in which an executable computer program is stored which, when executed by a processor, is capable of carrying out the method according to any one of claims 1 to 6.
CN202011159393.2A 2020-10-26 2020-10-26 File uploading control method and device, electronic equipment and storage medium Active CN112422632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011159393.2A CN112422632B (en) 2020-10-26 2020-10-26 File uploading control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011159393.2A CN112422632B (en) 2020-10-26 2020-10-26 File uploading control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112422632A true CN112422632A (en) 2021-02-26
CN112422632B CN112422632B (en) 2023-09-12

Family

ID=74841697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011159393.2A Active CN112422632B (en) 2020-10-26 2020-10-26 File uploading control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112422632B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113890872A (en) * 2021-09-07 2022-01-04 深圳Tcl新技术有限公司 Data set uploading method and device, electronic equipment and storage medium
CN115037739A (en) * 2022-06-13 2022-09-09 深圳乐播科技有限公司 File transmission method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426949A (en) * 2013-08-28 2015-03-18 鸿富锦精密工业(深圳)有限公司 Multi-file uploading method and system
CN105873022A (en) * 2015-12-07 2016-08-17 乐视移动智能信息技术(北京)有限公司 Downloading method and device for mobile terminal
CN106487868A (en) * 2016-05-30 2017-03-08 深圳市美贝壳科技有限公司 The method that User Defined uploads
CN106998349A (en) * 2016-10-18 2017-08-01 深圳大宇无限科技有限公司 Multithreading method for down loading and device
CN107276913A (en) * 2017-05-23 2017-10-20 努比亚技术有限公司 Transmission method, terminal and the computer-readable recording medium of batch documents

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426949A (en) * 2013-08-28 2015-03-18 鸿富锦精密工业(深圳)有限公司 Multi-file uploading method and system
CN105873022A (en) * 2015-12-07 2016-08-17 乐视移动智能信息技术(北京)有限公司 Downloading method and device for mobile terminal
CN106487868A (en) * 2016-05-30 2017-03-08 深圳市美贝壳科技有限公司 The method that User Defined uploads
CN106998349A (en) * 2016-10-18 2017-08-01 深圳大宇无限科技有限公司 Multithreading method for down loading and device
CN107276913A (en) * 2017-05-23 2017-10-20 努比亚技术有限公司 Transmission method, terminal and the computer-readable recording medium of batch documents

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113890872A (en) * 2021-09-07 2022-01-04 深圳Tcl新技术有限公司 Data set uploading method and device, electronic equipment and storage medium
CN113890872B (en) * 2021-09-07 2024-03-12 深圳Tcl新技术有限公司 Data set uploading method and device, electronic equipment and storage medium
CN115037739A (en) * 2022-06-13 2022-09-09 深圳乐播科技有限公司 File transmission method and device, electronic equipment and storage medium
CN115037739B (en) * 2022-06-13 2024-02-23 深圳乐播科技有限公司 File transmission method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112422632B (en) 2023-09-12

Similar Documents

Publication Publication Date Title
US10051648B2 (en) Selective prioritization of voice over data
KR101706359B1 (en) Method and device for controlling background application
CN105338409B (en) Network video preloading method and device
CN110611829B (en) Video preloading method and device, electronic equipment and storage medium
CN109167877B (en) Terminal screen control method and device, terminal equipment and storage medium
CN107943409B (en) Touch screen control method and device
EP2500822A1 (en) Control method and control apparatus for releasing memory
WO2022111072A1 (en) Image photographing method and apparatus, and electronic device, server and storage medium
US10735697B2 (en) Photographing and corresponding control
US9124548B2 (en) Method for uploading media file, electronic device using the same, and non-transitory storage medium
CN107133352B (en) Photo display method and device
CN112422632A (en) File uploading control method and device, electronic equipment and storage medium
CN104580019B (en) Network service provider method and device
CN109542777B (en) Pressure testing method and device and readable medium
US20140113611A1 (en) Traffic control method and device
JP2017535085A (en) Method and apparatus for initiating an energy saving mode
CN111405346A (en) Video stream playing control method, device and storage medium
CN112073641B (en) Image shooting method and device, mobile terminal and storage medium
US20210084230A1 (en) Information Processing Method, Terminal and Readable Storage Medium
CN103795923A (en) Shooting control method of camera shooting device and camera shooting device
CN112702633A (en) Multimedia intelligent playing method and device, playing equipment and storage medium
CN110231963B (en) Application control method and related device
CN109981988B (en) Video generation method and device and mobile terminal
CN112840663B (en) Video encoding method, video encoding device, electronic equipment and storage medium
CN109951701A (en) Monitor fault handling method and device

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
GR01 Patent grant
GR01 Patent grant