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

File uploading method and device and storage medium

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

Active Publication Date: 2020-10-16
TENCENT TECH (SHENZHEN) CO LTD
View PDF20 Cites 3 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
  • File uploading method and device and storage medium
  • File uploading method and device and storage medium
  • File uploading method and 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] Such as 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" com...

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 included 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 the...

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 invention provides a file uploading method and device and a storage medium, relates to the cloud technology, in particular to the technical field of computers, and aims to simplify the step of uploading a file to a CDN. The quick uploading is realized, and the uploading efficiency is improved. The method is applied to a command line program for executing a file uploading function. The method comprises the steps of obtaining an LBS field, a target file field and a CDN path directory field contained in a file uploading instruction according to the file uploading instruction input through a terminal device command line; according to the LBS field, obtaining pre-configured main file information from a Bin file configured corresponding to the LBS field; determining an entrance main file according to the main file information; and calling a file uploading script configured under the entrance main file, and executing the steps of obtaining a target file according to the target file fieldand uploading the target file to a specified directory of a CDN specified path. The file uploading instruction is input into the command line, so that the file is uploaded to the CDN, and the file uploading efficiency is 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 Applications(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