Summary of the invention
To overcome the problems in correlation technique, present description provides file uploading method, device and equipment.
According to this specification embodiment in a first aspect, providing a kind of file uploading method, comprising:
It is determined according to file in the historical storage position of server-side and recommends storage location information;
Before the file is uploaded, the storage location input object that the page provides is uploaded for file, using described
Storage location information is recommended to carry out assignment to the storage location input object, it is described out to upload page presentation by the file
Recommendation storage location of the file in the server-side.
Optionally, the recommendation storage location information includes: the position letter for being uploaded the file last time and being stored afterwards
Breath.
Optionally, the pathname for recommending file described in storage location use of information determines.
Optionally, the pathname includes multiple directory names, and the storage location input object has multiple;
It is described that assignment is carried out to the storage location input object using the recommendation storage location information, comprising: to utilize
The directory name is assigned to the storage location input object of the corresponding directory name.
Optionally, it if receiving the storage location information of user's input by the storage location input object, utilizes
The storage location information of the input is to the storage location input object again assignment.
According to the second aspect of this specification embodiment, a kind of file uploading method is provided, comprising:
Show that file uploads the page, the file uploads the page and is provided with storage location input interface;
If it is determined that there is file to be uploaded, the recommendation storage location information of file, the recommendation storage location information root are obtained
It is determined according to file in the historical storage position of server-side;
Assignment is carried out to the storage location input interface using the recommendation storage location information, uploads the file
The page shows the file in the recommendation storage location of the server-side.
According to the third aspect of this specification embodiment, a kind of file upload device is provided, comprising:
Determining module is used for: being determined according to file in the historical storage position of server-side and is recommended storage location information;
Display module is used for: before the file is uploaded, being uploaded the storage location that the page provides for file and is inputted
Object carries out assignment to the storage location input object using the recommendation storage location information, is uploaded by the file
Page presentation goes out the file in the recommendation storage location of the server-side.
Optionally, the recommendation storage location information includes: the position letter for being uploaded the file last time and being stored afterwards
Breath.
Optionally, the pathname for recommending file described in storage location use of information determines.
Optionally, the pathname includes multiple directory names, and the storage location input object has multiple;
It is described that assignment is carried out to the storage location input object using the recommendation storage location information, comprising: to utilize
The directory name is assigned to the storage location input object of the corresponding directory name.
Optionally, it if receiving the storage location information of user's input by the storage location input object, utilizes
The storage location information of the input is to the storage location input object again assignment.
According to the fourth aspect of this specification embodiment, a kind of file upload device is provided, comprising:
Display module is used for: display file uploads the page, and the file upload page is provided with storage location input and connects
Mouthful;
Module is obtained, is used for: if it is determined that there is file to be uploaded, obtaining the recommendation storage location information of file, the recommendation
Storage location information is determined according to file in the historical storage position of server-side;
Assignment module, is used for: assignment is carried out to the storage location input interface using the recommendation storage location information,
So that the file is uploaded the page shows the file in the recommendation storage location of the server-side.
According to the 5th of this specification embodiment aspect, provide a kind of file uploading device, including memory, processor and
Store the computer program that can be run on a memory and on a processor, wherein the processor executes real when described program
Existing following method:
It is determined according to file in the historical storage position of server-side and recommends storage location information;
Before the file is uploaded, the storage location input object that the page provides is uploaded for file, using described
Storage location information is recommended to carry out assignment to the storage location input object, it is described out to upload page presentation by the file
Recommendation storage location of the file in the server-side.
The technical solution that the embodiment of this specification provides can include the following benefits:
It, can be to file by obtaining file after the historical storage location information of server-side in this specification embodiment
The storage location input object automatic assignment of the page is generated, so that file upload page presentation goes out file and deposits in the recommendation of server-side
Storage space is set, and there is no need to user's manual operations, and storage location is inputted in the page, can effectively promote the efficiency of file upload.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
This specification can be limited.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute
The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is only to be not intended to be limiting this explanation merely for for the purpose of describing particular embodiments in the term that this specification uses
Book.The "an" of used singular, " described " and "the" are also intended to packet in this specification and in the appended claims
Most forms are included, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein is
Refer to and includes that one or more associated any or all of project listed may combine.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but
These information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not taking off
In the case where this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed
For the first information.Depending on context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determination ".
It as shown in Figure 1A, is a kind of this specification file upload schematic diagram of a scenario shown according to an exemplary embodiment,
It include server-side in Figure 1A, server-side is connected with multiple storage mediums (such as file server, hard disk etc.), and each storage is situated between
Matter is used for storage file.Two clients used by a user are also shown in Figure 1A, the file clothes that server-side is connected through
Business device is stored with the shared file that two affiliated team of user establish in the service end side.
By way of example it is assumed that there is file: reimbursement system .docx, the position of storage are as follows: enterprise B estipr/ public documents
Folder/manpower administration/new person must read/Corporation Instructions, and this document is usually responsible for update by Rowann, and is stored in the catalogue always
Under.Later, newly colleague Lulu is downloaded after this document modifies, and is needed the file that will newly modify to upload again, is uploaded in file
The page, Lulu need to input the storage location of this document.In practical application, since catalogue is very more, Lulu is likely to forget this
The storage location of file, even if remembering, since the store path of this document is deeper, Lulu is also required to execution multi-pass operation just can be defeated
Enter the storage location of this document.
Based on this, this specification embodiment provides a kind of file uploading method, and this method passes through file going through in server-side
History storage location determine recommend storage location information, and can the storage location input object to the file generated page assign automatically
Value, so that file uploads page presentation and goes out file in the recommendation storage location of server-side, there is no need to user's manual operations in page
Storage location is inputted in face, can effectively promote the efficiency of file upload.Next on the file of this specification embodiment
Transmission method is described in detail.
It as shown in Figure 1B, is the flow chart of this specification file uploading method shown according to an exemplary embodiment, packet
Include following steps:
In a step 102, it is determined according to file in the historical storage position of server-side and recommends storage location information.
At step 104, before the file is uploaded, the storage location input pair that the page provides is uploaded for file
As carrying out assignment to the storage location input object using the recommendation storage location information, uploading page by the file
Face shows the file in the recommendation storage location of the server-side.
The file of the present embodiment refers to computer documents, that is to say using hard disc of computer as carrier storage on computers
Information aggregate, file can be text document, picture or program etc..
The present embodiment method can be applied in the client under Client/Server (client-side/server-side) framework, can also
Applied to the server-side in Browser/Server (browser/server-side) framework.For being applied to client, client is mentioned
It is provided with file and uploads the page, so that upper transmitting file to the server-side of user is as shown in Figure 1 C this specification according to an exemplary reality
The schematic diagram that the file exemplified uploads the page is applied, includes storage location input object in the page, in fig. 1 c, the storage
Position input object is specifically an input frame for being directed to storage location.
File in the present embodiment is stored in service end side, and the available file of server-side is believed in the storage location of server-side
Breath, in some instances, the storage location of file may change, and each history that server-side can recorde this document is deposited
Storage space is set, and optionally, can also record this document in the storage duration of each storage location, server-side can be according to each storage
Position changes number or stores the factors such as duration and determines the recommendation storage location information, alternatively, in the case where scene is shared by team,
Different user can also be recorded to the different storage locations of file, be accustomed to determining the recommendation storage location in conjunction with the storage of user.
In other examples, recommending storage location information may include: to be stored after being uploaded the file last time
Location information, that is to say this document the last time storage position, in many cases, user download file after upload again,
Usually still it is uploaded to the last position stored of this document.Therefore storage location information is recommended to use this document last time quilt
The location information stored after upload, can be improved position recommendation accuracy, also reduce need user be manually operated can
Energy property, so as to promote transfer efficiency on file.In practical application, it is also possible to following situation occur: for example, user 1 downloads
It modifies after file, it is path1 that the file last time obtained at this time, which is uploaded the location information stored afterwards,;Meanwhile user 2
Also it has downloaded this document to modify, later, this document is uploaded to another storage location path2 by user 2, at this point, server-side
The location information that can know the newest storage of this document is path2, when uploading after user 1 has modified, can be used
The file last time is uploaded the location information path2 stored afterwards as recommendation storage location information.
For example, the nearest storage location of file is: enterprise B estipr/ public folders/manpower administration/new person must read/and it is public
Therefore department's specification using the storage location as storage location is recommended, and generates recommended location information, can be in practical application
The implementation of flexible configuration recommended location information as needed, by way of example, the path of file is entitled, and " enterprise B estipr/ is public
File/manpower administration/new person must read/Corporation Instructions altogether ", the pathname of file can be directly used as location information,
Pathname can be converted into character string, symbol, number etc. according to custom rule and be used as location information, it can also be by pathname
Encryption data etc. be used as location information.
Each file and catalogue can pass through unique path (referred to as pathname, the path in filesystem tree structures
Name) reach, pathname specifies the position of catalogue or file in file system, the pathname of file contain from root to
The set of each directory name in this document path experienced.
Specifically, from root to any data file, only one unique logical in tree directory structure
Road, on the path since the root of tree (i.e. master catalogue), whole catalogue file names and Data Filename, successively use " " even
It picks up and, that is, constitute the pathname of the data file.Each data file in file system has unique pathname.Path
Absolute path and relative path can be divided into, absolute path can be understood as fullpath of the file in storage medium, opposite road
Diameter refers to for object of reference, from object of reference to the path of file.In some instances, the pathname in the present embodiment can refer to
Absolute path;In other examples, service side is configured with service cluster and provides file pipe towards multiple users or enterprise
Reason services, and the pathname in the present embodiment can refer to relative path, such as enterprise customer, which can be phase
Root corresponding for the enterprise is to the pathname of file, and for personal user, which be can be relative to the use
The corresponding root in family to file pathname.In practical application can flexible choice as needed, the present embodiment do not limit this
It is fixed.
Storage location input object in the present embodiment can be understood as the interface being arranged on the file upload page,
The interface is used to input storage location for user, in practical application can there are many implementations, optionally, storage location input
Object can also have it is multiple, such as it is multiple selection interface form, be illustrated by taking Fig. 1 D as an example, a kind of file shown in figure
The schematic diagram of the page is uploaded, storage location input object is specifically multiple selection interfaces, and each storage location input object is corresponding
The catalogue hierarchical relationship that the user is established in server-side will include in pathname in the case where the path relatively depth of file
Therefore multiple directory names are assigned to the storage location input object of the corresponding directory name using the directory name.In Fig. 1 D,
Have at " enterprise bestipr " multiple catalogues (including public folders, application document and backup file etc.), storage location input
Object 141 is public folders by automatic assignment, and storage location input object 142 is the political affairs of people Lixing by automatic assignment.Based on this,
File, which uploads the page, can show the specific storage location of file, be also convenient for user and hold on each storage location input object
Row operation, improves transfer efficiency on file.
In practical application, user may also not need for file to be uploaded to the recommended location, therefore the storage of the present embodiment
Position input object can receive the storage location information of user's input, and the present embodiment method can use the storage of the input
Location information is to the storage location input object again assignment, so that file uploads the page and shows the storage after user's input
Position inputs for example, user can select other catalogues for storage location input object 141 in Fig. 1 D for storage location
Object 142 selects other catalogues.
The file uploading method provided, which is illustrated, to be illustrated to this followed by a specific embodiment.
By taking the information management cooperation platform of a entitled language sparrow as an example, user can lead to the cloud service product of the present embodiment
It crosses language sparrow and realizes team's document sharing etc..Wherein, for user using sketch software as design tool, user is soft using sketch
Part editing files;The plug-in unit Kitchen of language sparrow service side offer is wherein installed in the sketch software, it can using Kitchen
Realize that file is quickly uploaded to cloud in sketch software, the file uploading method of the present embodiment can be applied to Kitchen and insert
In part.
As an example, as shown in Figure 2 A, the interface of sketch software is shown, wherein user 1 is raw using sketch software
At a file, concrete operations may is that newly-built " infrastructure service " file, uploads the page according to the file that Kitchen is provided, uses
Family is the storage location that the user specifies are as follows: after Shou Zanggongneng Yu Que Xiang Muzu language sparrow 3.X [vision] collection function, is passed through
Plug-in unit uploads to language sparrow cloud.After file upload, the storage location that can be the upload of Kitchen plug-in unit is recorded, to deposit
The storage location information of this document is stored up, it is of course also possible to be recorded by cloud, Kitchen plug-in unit can be got by cloud
The storage location information of file.
Later, user passes through Kitchen plug-in download this document, after modifying by sketch software, Yong Huxu
This document is uploaded to cloud again.As shown in Figure 2 B, in the present embodiment method, it can show that file uploads the page, file
It uploads the page and is provided with storage location input interface, however, it is determined that have that file is to be uploaded, the recommendation storage location of available file
Information, the recommendation storage location information is determined according to file in the historical storage position of server-side, specifically can be this article
The part last time is uploaded the location information stored afterwards, due to being carried out using the recommendation storage location to storage location input interface
Assignment, therefore file uploads the page and shows this document in the recommendation storage location of server-side, user only needs to provide click
This document can be uploaded to automatically cloud by upload button, and user improves user without being manually entered storage location significantly
The efficiency of upper transmitting file.It is appreciated that sharing scene for team, if uploading again after other users downloading file, this is utilized
The file uploading method that embodiment provides equally can be realized automatically entering for storage location.
Corresponding with the embodiment of aforementioned document method for uploading, this specification additionally provides file and uploads device and its answered
The embodiment of equipment.
The embodiment that this specification file uploads device can be applied on a computing device, such as server or terminal are set
It is standby.Installation practice can also be realized by software realization by way of hardware or software and hardware combining.With software reality
It is by the processor of file process where it by nonvolatile memory as the device on a logical meaning for existing
In corresponding computer program instructions be read into memory operation formed.For hardware view, as shown in figure 3, being this theory
A kind of hardware structure diagram of computer equipment where bright book embodiment file uploads device, in addition to processor 310 shown in Fig. 3,
Server or electricity except memory 330, network interface 320 and nonvolatile memory 340, in embodiment where device 331
Sub- equipment can also include other hardware, repeat no more to this generally according to the actual functional capability of the computer equipment.
As shown in figure 4, Fig. 4 is a kind of this specification frame of file upload device shown according to an exemplary embodiment
Figure, described device include:
Determining module 41, is used for: being determined according to file in the historical storage position of server-side and recommends storage location information;
Display module 42, is used for: before the file is uploaded, it is defeated to upload the storage location that the page provides for file
Enter object, assignment is carried out to the storage location input object using the recommendation storage location information, by the file
It passes page presentation and goes out the file in the recommendation storage location of the server-side.
Optionally, the recommendation storage location information includes: the position letter for being uploaded the file last time and being stored afterwards
Breath.
Optionally, the pathname for recommending file described in storage location use of information determines.
Optionally, the pathname includes multiple directory names, and the storage location input object has multiple;
It is described that assignment is carried out to the storage location input object using the recommendation storage location information, comprising: to utilize
The directory name is assigned to the storage location input object of the corresponding directory name.
Optionally, it if receiving the storage location information of user's input by the storage location input object, utilizes
The storage location information of the input is to the storage location input object again assignment.
As shown in figure 5, Fig. 5 is a kind of this specification frame of file upload device shown according to an exemplary embodiment
Figure, described device include:
Display module 51, is used for: display file uploads the page, and the file upload page is provided with storage location input and connects
Mouthful;
Module 52 is obtained, is used for: if it is determined that there is file to be uploaded, obtaining the recommendation storage location information of file, it is described to push away
It recommends storage location information and is determined according to file in the historical storage position of server-side;
Assignment module 53, is used for: being assigned using the recommendation storage location information to the storage location input interface
Value makes the file upload the page and shows the file in the recommendation storage location of the server-side.
Above-mentioned file the upload function of modules and the realization process of effect in device are specifically detailed in above-mentioned file upload
The realization process of step is corresponded in method, details are not described herein.
Correspondingly, this specification also provides a kind of file uploading device, including memory, processor and is stored in memory
Computer program that is upper and can running on a processor, wherein the processor realizes following method when executing described program:
It is determined according to file in the historical storage position of server-side and recommends storage location information;
Before the file is uploaded, the storage location input object that the page provides is uploaded for file, using described
Storage location information is recommended to carry out assignment to the storage location input object, it is described out to upload page presentation by the file
Recommendation storage location of the file in the server-side.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The module of explanation may or may not be physically separated, and the component shown as module can be or can also be with
It is not physical module, it can it is in one place, or may be distributed on multiple network modules.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize this specification scheme.Those of ordinary skill in the art are not
In the case where making the creative labor, it can understand and implement.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can
With or may be advantageous.
Those skilled in the art will readily occur to this specification after considering specification and practicing the invention applied here
Other embodiments.This specification is intended to cover any variations, uses, or adaptations of this specification, these modifications,
Purposes or adaptive change follow the general principle of this specification and do not apply in the art including this specification
Common knowledge or conventional techniques.The description and examples are only to be considered as illustrative, the true scope of this specification and
Spirit is indicated by the following claims.
It should be understood that this specification is not limited to the precise structure that has been described above and shown in the drawings,
And various modifications and changes may be made without departing from the scope thereof.The range of this specification is only limited by the attached claims
System.
The foregoing is merely the preferred embodiments of this specification, all in this explanation not to limit this specification
Within the spirit and principle of book, any modification, equivalent substitution, improvement and etc. done should be included in the model of this specification protection
Within enclosing.