Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A file upload method, device and storage medium

A file upload and master file technology, applied in the computer field, can solve problems such as cumbersome process

Active Publication Date: 2021-07-06
TENCENT TECH (SHENZHEN) CO LTD
View PDF14 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, when uploading files to the CDN, it is mainly through manual operation, click on the directory and path to be uploaded to the CDN website step by step, and then upload the files to be uploaded one by one, the process is cumbersome

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A file upload method, device and storage medium
  • A file upload method, device and storage medium
  • A file upload method, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0085] Embodiment 1: Install a command line program for performing file upload function.

[0086] like figure 2 As shown in FIG. 1 , it is a schematic diagram of a command-line program installed for performing the file upload function provided by the embodiment of the present application.

[0087] From figure 2 It can be seen from the figure that the command line program used to perform the file upload function is pre-stored in the tnpm server. Pull the command-line program used to perform the file upload function and install it locally on the terminal device.

[0088] During the process of installing the command-line program for performing the file upload function, the user can choose whether to install globally or in a project. If you choose global installation, pull the command line program corresponding to "tnpm install–g@tencent / lbs-cli"; if you choose to install in the project, pull the corresponding command line program of "tnpm install@tencent / lbs-cli--save" comman...

Embodiment 2

[0093] Embodiment 2: using a command line program for executing the file upload function.

[0094] This application uses the scaffolding designed by the front-end personnel to deploy the command line program for performing the file upload function in the scaffolding, and the user can use the command line program for performing the file upload function locally on the terminal device.

[0095] Such as image 3 As shown, it is a flowchart of a method for uploading a file provided in the embodiment of this application, including the following steps:

[0096] Step S300, according to the file upload command input through the command line of the terminal device, obtain the LBS field, the target file field and the CDN path directory field contained in the file upload command.

[0097] In this application, if you want to upload files to the CDN through the command line program used to perform the file upload function, you need to enter the file upload command in the command line of th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present application provides a file uploading method, device and storage medium, which relate to cloud technology, in particular to the field of computer technology, and are used to simplify the steps of uploading files to a CDN, realize fast uploading, and improve uploading efficiency. This application is applied to the command line program for performing file upload function: according to the file upload command input through the command line of the terminal device, the LBS field, the target file field and the CDN path directory field included in the file upload command are obtained; according to the LBS field, from Obtain the pre-configured main file information in the Bin file corresponding to the LBS field configuration; determine the entry main file according to the main file information; call the file upload script configured under the entry main file, execute: obtain the target file according to the target file field, and upload the target file Upload to the specified directory in the specified path of the CDN. By entering the file upload command in the command line, the file can be uploaded to the CDN and the efficiency of file upload can be improved.

Description

technical field [0001] The present application relates to the field of computer technology, and provides a file uploading method, device and storage medium. Background technique [0002] In the context of front-end engineering, files are getting bigger and bigger. If the file is uploaded to an ordinary web server, its loading performance is very low, so a better approach is to upload the file to a CDN (ContentDelivery Network, Content Delivery Network), and then perform static loading. [0003] At present, when uploading files to the CDN, it is mainly through manual operation, click on the directory and path to be uploaded step by step on the CDN website, and then upload the files to be uploaded one by one. The process is cumbersome. Contents of the invention [0004] Embodiments of the present application provide a file uploading method, device, and storage medium, which are used to simplify the steps of uploading files to a CDN, realize fast uploading, and improve uploa...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/27H04L29/08
CPCG06F16/27H04L67/06
Inventor 刘鹏
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products