Method for sending file from browser to server

A technology for sending files and servers, which is applied in the field of Internet communication and file transmission, and can solve problems such as missing transmission and prone to misoperation, so as to avoid misoperation, reduce the need for intervention, and simplify operation steps

Inactive Publication Date: 2016-02-03
AVIC CHENGDU AIRCRAFT DESIGN & RES INST
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It is very prone to misoperation, missing / repeated selection of some files, resulting in missed / repeated transmission

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
  • Method for sending file from browser to server
  • Method for sending file from browser to server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] For example, the user wants to upload all ".dat" files under the "d:\tmp" folder to the server. available as figure 2 The process shown is realized.

[0041] The process first uses an tag to obtain the folder specified by the user from Javascript code, such as "d:\tmp", and then uses the FileSystemObject object to obtain all ".dat" under the "d:\tmp" folder document. Use the ADODB.Stream object to create binary stream data, write boundary characters in binary order, "\r\nContent-Disposition: form-data; name="FormName";

[0042] filename="firstfilename.dat"\r\nSomeInformation\r\n\r\n", the binary file content of the file firstfilename.dat, write the first file into the stream data.

[0043] Then write "\r\n", boundary character, "\r\nContent-Disposition: form-data; name="FormName";

[0044] filename="Secondfilename.dat"\r\nSomeInformation\r\n\r\n", the binary file content of the file Secondfilename.dat, write the second file into the stream data.

[0045] And so o...

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 method for sending a file from a browser to a server, and belongs to the technical field of internet communication. The technical scheme of the method provided by the invention comprises the following steps: combining binary contents and related information of a file selected by a programmed algorithm into an integral binary data steam in a specific structural sequence by the browser, using XML HTTP to send the binary data stream to a Web server, and receiving and storing the data as local data by the Web server. The method provided by the invention has the advantages that the sent file can be determined by the programmed algorithm without being progressively specified by a user.

Description

technical field [0001] A method for sending files from a browser to a server according to the invention belongs to the technical field of Internet communication, in particular to the technical field of file transmission. Background technique [0002] When using a browser to send a file to a web server, currently the <inputtype="file"> tag in the HTML tag Form element is usually used. However, the <inputtype="file"> tag cannot be driven by JavaScript and other scripting languages, and the specific files to be sent cannot be set by the program. Every file to be uploaded must be manually selected by the user on the browser page. This makes it impossible to determine the number of files to be sent. The user can only manually increase the number of <inputtype="file"> tags and select the files to be uploaded one by one. For example, an "Add" button is displayed on the page. An <inputtype="file"> tag is added to the element, and the user uses the newly adde...

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): H04L29/08
CPCH04L67/02H04L67/06
Inventor 周安宁罗小琦龙斌巫鹏伟颜民朱玉洪
Owner AVIC CHENGDU AIRCRAFT DESIGN & RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products