CN105677666A - File uploading method and device - Google Patents

File uploading method and device Download PDF

Info

Publication number
CN105677666A
CN105677666A CN201410665616.0A CN201410665616A CN105677666A CN 105677666 A CN105677666 A CN 105677666A CN 201410665616 A CN201410665616 A CN 201410665616A CN 105677666 A CN105677666 A CN 105677666A
Authority
CN
China
Prior art keywords
file
event
specified type
triggering
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.)
Pending
Application number
CN201410665616.0A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410665616.0A priority Critical patent/CN105677666A/en
Priority to PCT/CN2015/073039 priority patent/WO2016078245A1/en
Publication of CN105677666A publication Critical patent/CN105677666A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a file uploading method and device. The method comprises following steps: detecting a trigger instruction to a specified control on an access page, wherein the control is used for triggering and uploading files; obtaining a specified event bounded with the specified control under the trigger of the triggering instruction, wherein the specified event is used for triggering and uploading the specified type of files and the specified type of files is other type of files apart from pictures and videos and any other types; and converting the pre-set event to an event recognized by a terminal and selecting the specified type of files to upload under the trigger of the recognizable event. By the file uploading method and device, the problem in the prior art that a limit is set on the access of local files by limiting applications in an iOS system. Pictures and videos can be uploaded. User's experience is improved.

Description

The method for uploading of file and device
Technical field
The present invention relates to the communications field, in particular to a kind of method for uploading and device of file.
Background technology
Mobile operating system (iphoneOperatingSystem is referred to as iOS) is developed by AppleMobile operating system. Apple announces this in the Macworld conference early than on January 9th, 2007System, is that design is used to iPhone at first, and cover was used iPodtouch, iPad and Apple successively afterwardsOn the products such as TV. IOS is the same with the MacOSX operating system of apple, and it is also taking Darwin as basis, therefore belong to equally the commercial operation system of class Unix. According to famous internet traffic mechanism for monitoring NetThe latest data demonstration that Applications issues, iOS reaches 44.19% in mobile platform occupation rate of market.
IOS built-in browser control UIWebView, this control is based on webkit kernel, by this controlCan realize web page browsing, access mailboxes, access microblogging. But in the time that file is uploaded, because iOS restriction shouldUse routine access local file, thus can only uploading pictures and video, can not upload the file of other types, asWord document etc.
Present access local file for restriction application in iOS system in correlation technique, can only uploading pictures and lookProblem frequently, not yet proposes effective solution at present.
Summary of the invention
Main purpose of the present invention is to provide a kind of method for uploading and device of file, at least to solve relevant skillIn art, iOS restriction application presents access local file, can only uploading pictures and the problem of video.
According to an aspect of the present invention, provide a kind of method for uploading of file, having comprised: detected access pageOn face, specify the triggering command of control, this control carries out file for triggering and uploads; Touching of described triggering commandGive, obtain and the allocate event of described appointment control bundle, this allocate event is uploaded specified type for triggeringFile, described specified type file is the other types file except picture and video file type; Described in inciting somebody to actionAllocate event converts the event that terminal can be identified to, and under the triggering of the described event that can identify, selectsDescribed specified type file is uploaded.
Further, select described specified type file to upload, comprising: in the described event that can identifyTriggering under, the file presenting for selecting described specified type file to user is chosen interface; At described fileChoose and on interface, select described specified type file.
Further, choose on interface and select described specified type file to comprise at described file: at described fileChoose and on interface, present the listed files corresponding with described allocate event; From described listed files, select one orMultiple described specified type files.
Further, described file type comprises one of at least following: Txt, Word, PPT, Excel.
Further, select after described specified type file uploads, also to comprise: export described specified classType file upload result, and show that this uploads result.
Further, the method for uploading of described file is applied to Mobile operating system iOS.
According to another aspect of the present invention, provide a kind of device of uploading of file, having comprised: detection module,For detection of to the triggering command of specifying control on accession page, this control carries out file and uploads for triggering; ObtainDelivery piece, under the triggering of described triggering command, obtains and the allocate event of described appointment control bundle,This allocate event is uploaded specified type file for triggering, and described specified type file is for removing picture and video fileOther types file outside type; Modular converter, can identify for converting described allocate event to terminalEvent, and under the triggering of the described event that can identify, select described specified type file to upload.
Further, described modular converter comprises: display unit, and for touching in the described event that can identifyGive, the file presenting for selecting described specified type file to user is chosen interface; Selected cell, forChoose and on interface, select described specified type file at described file.
Further, described selected cell also for, choose on interface and present and described appointment thing at described fileThe listed files that part is corresponding, and from described listed files, select one or more described specified type files.
Further, described file type comprises one of at least following: Txt, Word, PPT, Excel.
By the present invention, upload out the specified file of the other types outside picture and video file type at needsTime, adopt by triggering the allocate event corresponding with this specified file, and then this allocate event transformed,Convert the event that terminal can be identified to, after converting the event that terminal can identify to, select specified typeThe mode that file is uploaded, has solved in correlation technique restriction application in iOS system and has presented access local file,Can only uploading pictures and the problem of video, improve user's experience.
Brief description of the drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part,Schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the method for uploading flow chart according to the file of the embodiment of the present invention;
Fig. 2 is the structured flowchart of uploading device according to the file of the embodiment of the present invention;
Fig. 3 is the optional structured flowchart one of uploading device according to the file of the embodiment of the present invention;
Fig. 4 is the internal module structured flowchart of the display file uploading system of the optional embodiment according to the present invention;
Fig. 5 is the flow chart of the file uploading method of optional embodiment according to the present invention.
Detailed description of the invention
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments. It should be noted that, do not rushingIn prominent situation, the feature in embodiment and embodiment in the application can combine mutually.
A kind of method for uploading of file is provided in the present embodiment, and Fig. 1 is the file according to the embodiment of the present inventionMethod for uploading flow chart, as shown in Figure 1, this flow process comprises the steps:
Step S102: detect specifying the triggering command of control on accession page, this control carries out for triggeringFile is uploaded;
Step S104: under the triggering of triggering command, obtain and the allocate event of specifying control bundle, this refers toDetermine event and upload specified type file for triggering, specified type file is for except picture and video file typeOther types file;
Step S106: convert predeterminable event to event that terminal can be identified, and in the event that can identifyTriggering under, select specified type file to upload.
By the present embodiment, upload out the appointment literary composition of the other types outside picture and video file type at needsWhen part, adopt by triggering the allocate event corresponding with this specified file, and then this allocate event transformed,Convert the event that terminal can be identified to, after converting the event that terminal can identify to, select specified typeThe mode that file is uploaded, thereby solved in correlation technique in iOS system restriction application, to present access localFile, can only uploading pictures and the problem of video, has improved user's experience.
Relate in the present embodiment the multiple mode of uploading specified type file, and can of the present embodimentSelect in embodiment and can realize in the following way the operation of selecting specified type file to upload, this operationComprise following several step:
Step S11: under the triggering of the event that can identify, present for selecting specified type file to userFile choose interface;
Step S12: choose and select specified type file on interface at file.
And choose at file the mode of selecting specified type file on interface for what relate in the present embodiment,In the present embodiment, be also to have multiplely, wherein a kind of mode comprises the steps:
Step S21: choose and present the listed files corresponding with allocate event on interface at file;
Step S22: select one or more specified type files from listed files.
Can be as follows for the alternative document type except picture and video relating in the present embodimentThese files: Txt, Word, PPT, Excel. Certainly only illustrate here, other are not enumeratedProcessing picture out and the file of video are also within protection scope of the present invention.
After having uploaded the required file of user, in order better to determine the result that user uploads, this realityExecuting example can also comprise: output specified type file upload result, and show that this uploads result.
The method for uploading of file is applied to Mobile operating system IOS. This iOS system built-in browser controlUIWebView, this control is based on webkit kernel.
A kind of device of uploading of file is also provided in the present embodiment, this device be used for realizing above-described embodiment andPreferred embodiment, had carried out repeating no more of explanation. As used below, term " module " is " singleUnit " can realize the combination of software and/or the hardware of predetermined function. Although the described device of following examplesPreferably realize with software, but hardware, or the realization of the combination of software and hardware be also possible and by structureThink.
Fig. 2 is the structured flowchart of uploading device according to the file of the embodiment of the present invention, as shown in Figure 2, and this dressPut and comprise: detection module 22, for detection of to the triggering command of specifying control on accession page, this control is usedCarrying out file in triggering uploads; Acquisition module 24 is of coupled connections with detection module 22, in triggering commandUnder triggering, obtain and the allocate event of specifying control bundle, this allocate event is uploaded specified type literary composition for triggeringPart, specified type file is the other types file except picture and video file type; Modular converter 26Be of coupled connections with acquisition module 24, for predeterminable event being converted to the event that terminal can be identified, and at energyUnder the triggering of the event of enough identification, select specified type file to upload.
Fig. 3 is the optional structured flowchart one of uploading device according to the file of the embodiment of the present invention, as shown in Figure 3,Modular converter 26 comprises: display unit 32, under the triggering in the event that can identify, presents to userFor selecting the file of specified type file to choose interface; Selected cell 34 is of coupled connections with display unit 32,For choosing and select specified type file on interface at file.
Alternatively, selected cell 34 also for, choose and on interface, present the literary composition corresponding with allocate event at filePart list, and from listed files, select one or more specified type files.
Alternatively, file type comprises one of at least following: Txt, Word, PPT, Excel.
For better the present invention will be described, be illustrated below in conjunction with optional enforcement of the present invention.
This optional embodiment provides a kind of file uploading method based on webkit, and user can be passed throughIOS equipment is uploaded the file except picture and video.
This optional embodiment has adopted following mode:
Step S31: user starts iOS application, (comprises built-in browser control part by user interactive moduleUIWebView) accession page
Step S32: user clicks the document uploading control in the page;
Wherein, in this uploading control, bind specific JS event; And obtain use by action listener moduleThe JS event that trigger at family, passes to local file display module after conversion; And then local file is shown mouldPiece provides file to choose interface;
Step S33: user selects a file to upload;
The mode that wherein file is uploaded comprises following several:
Mode one: user can once select multiple files, uploads by batch mode;
Mode two: user can select one or more file;
Mode three: user can select multiple file types, comprises and is not limited to txt, word, PPT, excelDeng;
After user's filesselected or file, trigger transmission module on file, send by network request on backstageTo service end;
Step S34: present and upload successfully interface.
It should be noted that, this function also can expand to android platform;
By this optional embodiment, can for user provide a kind of by iOS equipment upload except picture, video itThe method of outer file, thus the complexity of user operation reduced, reliable, safety, convenience, simply civilian are providedThe mode that part is uploaded.
Below by specific embodiments of the invention and accompanying drawing, this optional embodiment is illustrated
Embodiment mono-
Fig. 4 is the internal module structured flowchart of the display file uploading system of the optional embodiment according to the present invention; AsShown in Fig. 4, this system comprises: user interactive module 42, and for providing and User Interface, wherein bagDraw together document uploading control, and a JS event of document uploading control binding; Action listener module 44, for obtainingTake family and click the JS event of document uploading control; And by after the conversion of JS event, by internal interface transmission originallyThe file display module on ground; File display module 46, for showing file and listed files, and passes through a littleHit file, access the superior and the subordinate file, and then select File or file; Transmission module 48 on file,For clicking and upload after button in reception, can clip to service end by backstage upload file or file.
Fig. 5 is the file uploading method flow chart of the optional embodiment according to the present invention, as shown in Figure 5, and the methodComprise:
Step S502: start application, by user interactive module accession page;
Step S504: receive the operation of clicking document uploading control in the page;
Step S506: the file of triggering is uploaded event transfer file display module, thus local file choosing shownSelect interface;
Step S508: select file to be uploaded;
Step S510: transmission module background process on file, uploads to service end by file.
Step S512: present the result that file is uploaded.
By this optional embodiment, can for user provide a kind of by iOS or peace table equipment upload except picture,The method of file outside video, thus the complexity of user operation reduced, reliable, safety, convenience, simple are providedSingle file is uploaded mode.
These are only optional embodiment of the present invention, be not limited to the present invention, for the skill of this areaArt personnel, the present invention can have various modifications and variations. Within the spirit and principles in the present invention all, instituteDo any amendment, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a method for uploading for file, is characterized in that, comprising:
Detect specifying the triggering command of control on accession page, this control carries out file for triggering and uploads;
Under the triggering of described triggering command, obtain and the allocate event of described appointment control bundle, this refers toDetermine event and upload specified type file for triggering, described specified type file is for removing picture and video fileOther types file outside type;
Convert described allocate event to event that terminal can be identified, and in the described event that can identifyTriggering under, select described specified type file to upload.
2. method according to claim 1, is characterized in that, selects described specified type file to upload,Comprise:
Under the triggering of the described event that can identify, present for selecting described specified type literary composition to userThe file of part is chosen interface;
Choose and on interface, select described specified type file at described file.
3. method according to claim 1, is characterized in that, described in described file chooses on interface and to selectSpecified type file comprises:
Choose and on interface, present the listed files corresponding with described allocate event at described file;
From described listed files, select one or more described specified type files.
4. method according to claim 1, is characterized in that, it is one of at least following that described file type comprises:Txt、Word、PPT、Excel。
5. method according to claim 1, is characterized in that, selects described specified type file to uploadAfterwards, also comprise:
Export the result of uploading of described specified type file, and show that this uploads result.
6. according to the method described in claim 1 to 5 any one, it is characterized in that the method for uploading of described fileBe applied to Mobile operating system iOS.
File upload a device, it is characterized in that, comprising:
Detection module, for detection of to the triggering command of specifying control on accession page, this control is for touchingSend out and carry out file and upload;
Acquisition module, under the triggering of described triggering command, obtains with described appointment control bundleAllocate event, this allocate event is uploaded specified type file for triggering, and described specified type file is for removingOther types file outside picture and video file type;
Modular converter, for converting described allocate event to event that terminal can be identified, and describedUnder the triggering of the event that can identify, select described specified type file to upload.
8. device according to claim 7, is characterized in that, described modular converter comprises:
Display unit, under the triggering in the described event that can identify, presents for selecting to userThe file of described specified type file is chosen interface;
Selected cell, selects described specified type file for choosing at described file on interface.
9. device according to claim 8, is characterized in that,
Described selected cell also for, described file choose on interface, present corresponding with described allocate eventListed files, and from described listed files, select one or more described specified type files.
10. device according to claim 7, is characterized in that, it is one of at least following that described file type comprises:Txt、Word、PPT、Excel。
CN201410665616.0A 2014-11-19 2014-11-19 File uploading method and device Pending CN105677666A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410665616.0A CN105677666A (en) 2014-11-19 2014-11-19 File uploading method and device
PCT/CN2015/073039 WO2016078245A1 (en) 2014-11-19 2015-02-13 File uploading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410665616.0A CN105677666A (en) 2014-11-19 2014-11-19 File uploading method and device

Publications (1)

Publication Number Publication Date
CN105677666A true CN105677666A (en) 2016-06-15

Family

ID=56013154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410665616.0A Pending CN105677666A (en) 2014-11-19 2014-11-19 File uploading method and device

Country Status (2)

Country Link
CN (1) CN105677666A (en)
WO (1) WO2016078245A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180107A (en) * 2017-06-08 2017-09-19 山大鲁能信息科技有限公司 Mobile phone accessory under Ionic frameworks uploads the method and system of select file
CN107666494A (en) * 2016-07-27 2018-02-06 广州市动景计算机科技有限公司 Data uploading method and device and portable terminal
CN109672710A (en) * 2017-10-17 2019-04-23 阿里巴巴集团控股有限公司 File uploading method, system and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130063771A1 (en) * 2011-09-09 2013-03-14 Samsung Electronics Co., Ltd. Apparatus and method for uploading image file of apparatus to social network service
CN103685379A (en) * 2012-09-12 2014-03-26 腾讯科技(深圳)有限公司 Webkit core browser-based file uploading method and device
CN103870490A (en) * 2012-12-12 2014-06-18 腾讯科技(武汉)有限公司 File uploading method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525319A (en) * 2003-02-25 2004-09-01 北京北佳信息系统有限公司 Method and system for courseware upload and import
CN103944885A (en) * 2014-03-24 2014-07-23 汉柏科技有限公司 Web data uploading control method and gateway device
CN104035989A (en) * 2014-06-09 2014-09-10 小米科技有限责任公司 Method and device for uploading file

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130063771A1 (en) * 2011-09-09 2013-03-14 Samsung Electronics Co., Ltd. Apparatus and method for uploading image file of apparatus to social network service
CN103685379A (en) * 2012-09-12 2014-03-26 腾讯科技(深圳)有限公司 Webkit core browser-based file uploading method and device
CN103870490A (en) * 2012-12-12 2014-06-18 腾讯科技(武汉)有限公司 File uploading method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107666494A (en) * 2016-07-27 2018-02-06 广州市动景计算机科技有限公司 Data uploading method and device and portable terminal
CN107180107A (en) * 2017-06-08 2017-09-19 山大鲁能信息科技有限公司 Mobile phone accessory under Ionic frameworks uploads the method and system of select file
CN109672710A (en) * 2017-10-17 2019-04-23 阿里巴巴集团控股有限公司 File uploading method, system and equipment
CN109672710B (en) * 2017-10-17 2022-09-13 阿里巴巴集团控股有限公司 File uploading method, system and equipment

Also Published As

Publication number Publication date
WO2016078245A1 (en) 2016-05-26

Similar Documents

Publication Publication Date Title
CN103888817B (en) It is a kind of that file is uploaded into intelligent television and the method and apparatus of played file
CN108259598B (en) Perception device unified access method based on heterogeneous fusion and cloud analysis technology
CN102196015B (en) Manuscript system-based internal and external network data transmission method and system
CN101894150B (en) Internet web page audio/video acquisition method and system for mobile communication equipment terminal
JP2015532473A (en) Information processing method, apparatus, terminal, and server
JP6817649B2 (en) Communication support devices, methods, and computer programs
CN105163193B (en) comment information sharing method and device for video-on-demand played by smart television
CN105677666A (en) File uploading method and device
CN104079986A (en) Method and device for achieving video playing between devices
CN105635128A (en) System and method of video streaming transmission
CN104852987A (en) Screen capture transmission system for family internet equipment
CN104602108A (en) Method and system for transferring files of mobile phone and set-top box
US20150312183A1 (en) Variable image acquisition and processing techniques based on image data type
WO2017096812A1 (en) Webpage displaying method, mobile terminal, intelligent terminal, computer program, and storage medium
CN104301438A (en) File uploading method
CN105205129A (en) Double-system wallpaper setting method and device
CN103747058B (en) A kind of method and apparatus of exhibiting pictures
CN103957111B (en) Multimedia supplying system based on instant messaging
WO2018080245A3 (en) Method and apparatus for optimizing resources in ip multimedia subsystem(ims) network
WO2018010469A1 (en) Data transmission method, device and storage medium
CN104281590A (en) Picture uploading method, device, application interactive platform, terminal and system
CN101945233A (en) Method for looking up PPT (Power Point) and PDF (Portable Document Format) documents and television adopting same
CN107318129B (en) Data processing method and device and terminal
CN104918104A (en) Household internet equipment screen transmission system
CN103516720A (en) Method and device for logging in target application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160615