Method and system for uploading files in batches
The invention belongs to the technical field of computers, and discloses a method for uploading files in batches, which sequentially comprises the following steps of: 1, acquiring a list of a plurality of files to be uploaded; 2, according to the sequence of the list, a new Promise () construction f...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention belongs to the technical field of computers, and discloses a method for uploading files in batches, which sequentially comprises the following steps of: 1, acquiring a list of a plurality of files to be uploaded; 2, according to the sequence of the list, a new Promise () construction function packaged with an uploading interface function is used for completing uploading of a file; 3, calling a processing function to process an uploading result by the method thin (), and continuing to call an uploading interface function to complete the uploading of a next file to be uploaded; 4, after the step 2 is completed, 1 is added to the uploading times; 5, judging whether the uploading frequency is smaller than the total number of the files in the list or not; if yes, the second step is carried out, and if not, the process is ended. According to the method, an asynchronous processing method is adopted for uploading and result obtaining, the uploading result can be obtained in real time, uploading of a nex |
---|