Movatterモバイル変換


[0]ホーム

URL:


CN114390044A - File uploading method, system, device and storage medium - Google Patents

File uploading method, system, device and storage medium
Download PDF

Info

Publication number
CN114390044A
CN114390044ACN202111640501.2ACN202111640501ACN114390044ACN 114390044 ACN114390044 ACN 114390044ACN 202111640501 ACN202111640501 ACN 202111640501ACN 114390044 ACN114390044 ACN 114390044A
Authority
CN
China
Prior art keywords
file
uploaded
uploading
equipment
storage
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.)
Granted
Application number
CN202111640501.2A
Other languages
Chinese (zh)
Other versions
CN114390044B (en
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.)
Hangzhou Huacheng Software Technology Co Ltd
Original Assignee
Hangzhou Huacheng Software Technology Co Ltd
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 Hangzhou Huacheng Software Technology Co LtdfiledCriticalHangzhou Huacheng Software Technology Co Ltd
Priority to CN202111640501.2ApriorityCriticalpatent/CN114390044B/en
Publication of CN114390044ApublicationCriticalpatent/CN114390044A/en
Application grantedgrantedCritical
Publication of CN114390044BpublicationCriticalpatent/CN114390044B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

A file uploading method, system, device and storage medium belongs to the technical field of information, and the method comprises the following steps: receiving a request message sent by equipment where a file to be uploaded is located; analyzing a configuration rule according to the request message, and distributing a file ID for the file to be uploaded; if the uploading mode is direct storage, generating a URL (uniform resource locator) address of a file to be uploaded of the cloud server according to a first preset rule and the file ID, and sending the URL address to the equipment; if the uploading mode is unloading, generating a URL address of the file to be uploaded of the proxy server according to a second preset rule and the file ID, and sending the URL address to the equipment; and receiving the uploading success message, and generating an index record according to the uploading success message. According to the technical scheme, the direct storage and the transfer storage are distributed and managed for the uploaded files through the signaling server, so that two modes of the direct storage and the transfer storage of the same network exist together, and the direct storage and the transfer storage can be automatically switched according to different scenes and flexible configuration rules required by the same network.

Description

File uploading method, system, device and storage medium
Technical Field
The invention belongs to the technical field of information, and particularly relates to a file uploading method, a file uploading system, file uploading equipment and a storage medium.
Background
With the development of internet technology, data information created and to be stored by people is increasing day by day, and network storage is becoming more and more popular as one of storage modes, such as a network disk, a cloud disk and other various application programs, which can provide data uploading storage service for users, and users can also establish a proxy server by themselves to store uploaded files. However, at present, various application programs are organized respectively, and files are stored in respective servers by adopting different file uploading methods, which is not only not beneficial to managing uploaded data, but also needs to develop different codes aiming at different network storages so as to facilitate compatibility adjustment of equipment terminals uploading data, and if the current network environment changes, the codes need to be manually changed again, which is time-consuming and labor-consuming.
Disclosure of Invention
The invention provides a file uploading method, a system, equipment and a storage medium, wherein a signaling server is used for distributing and managing direct storage and transfer storage of an uploaded file, so that two modes of direct storage and transfer storage of the same network exist together, an equipment end only needs to send a request and upload the file through a received URL address, automatic uploading can be realized without additionally selecting the direct storage and the transfer storage, and automatic switching between the direct storage and the transfer storage can be realized through a configuration rule.
In a first aspect, the present invention provides a file uploading method, including:
receiving a request message sent by equipment where a file to be uploaded is located, wherein the request message at least comprises attribute information of the file to be uploaded and/or attribute information of the equipment;
analyzing a configuration rule according to the request message, and distributing a file ID for the file to be uploaded, wherein the configuration rule is used for determining an uploading mode of the file to be uploaded, the uploading mode comprises direct storage and transfer storage, and the file ID is characterized by a unique identifier of the file to be uploaded;
if the uploading mode is determined to be direct storage, generating a URL (uniform resource locator) address of a file to be uploaded of the cloud server according to a first preset rule and the file ID, and sending the URL address to the equipment; if the uploading mode is determined to be unloading, generating a URL (uniform resource locator) address of a file to be uploaded of the proxy server according to a second preset rule and the file ID, and sending the URL address to the equipment;
and receiving an uploading success message sent by the equipment where the file to be uploaded is successfully sent according to the received URL address, and generating an index record according to the uploading success message, wherein the index record is used for searching the file to be uploaded.
In some embodiments, the method further includes, if the network environment parameter where the device is located changes, adjusting the configuration rule according to the changed network environment.
In some embodiments, the attribute information of the file to be uploaded includes: one or a combination of the type information of the file to be uploaded and the size information of the file to be uploaded; the attribute information of the device includes: one or a combination of name information of the device where the file to be uploaded is located and port number information used when the file is uploaded by the device; the configuration rule comprises one or a combination of the attribute information of the file to be uploaded and/or the attribute information of the equipment, and is determined according to at least any one of the request messages.
In some embodiments, if it is determined that the uploading manner is direct storage, generating, according to a first preset rule and the file ID, a URL address of the file to be uploaded of the cloud server, specifically including:
and determining that the uploading mode is direct storage, acquiring authorized signature information of a cloud server, and generating a URL (uniform resource locator) address of the cloud server of the file to be uploaded of the cloud server according to the authorized signature information, the network address of the cloud server, the storage path of the cloud server and the file ID.
In some embodiments, the URL address of the file to be uploaded of the cloud server also carries authorization information of the file to be uploaded, where the authorization information is used to indicate an upload time limit and/or an upload permission of the file to be uploaded.
In some embodiments, if it is determined that the uploading manner is unloading, generating a URL address of the file to be uploaded of the proxy server according to a second preset rule and the file ID includes:
and determining that the uploading mode is unloading, and splicing to generate the URL address of the file to be uploaded of the proxy server according to the domain name information of the proxy server, the storage path of the proxy server and the file ID.
In some embodiments, the generating an index record according to the upload success message specifically includes:
and searching a storage path of an uploading server corresponding to the uploading file ID according to the uploading file ID in the uploading success message, and generating an index record by taking the uploading file ID as a key word and taking the uploading server and the storage path corresponding to the uploading file ID as fields.
In a second aspect, the present invention further provides a file uploading system, including a signaling server, a proxy server, and a cloud server;
the signaling server is used for receiving a message sent by equipment where a file to be uploaded is located, wherein the message comprises a request message and an uploading success message; analyzing a configuration rule according to the request message, and distributing a file ID for the file to be uploaded, wherein the configuration rule is used for determining an uploading mode of the file to be uploaded, the uploading mode comprises direct storage and transfer storage, and the file ID is characterized by a unique identifier of the file to be uploaded; the file uploading method comprises the steps that if the uploading mode is determined to be direct storage, a URL address of a file to be uploaded of the cloud server is generated according to a first preset rule and the file ID, and the URL address is sent to the equipment; if the uploading mode is determined to be unloading, generating a URL (uniform resource locator) address of a file to be uploaded of the proxy server according to a second preset rule and the file ID, and sending the URL address to the equipment; the server is also used for generating an index record according to the uploading success message;
the proxy server is used for receiving the file to be uploaded sent by the equipment and returning the transmission result to the equipment; the file uploading module is further used for uploading the file to the cloud server after the file to be uploaded is successfully received;
and the cloud server is used for receiving the file to be uploaded sent by the equipment and returning the transmission result to the equipment.
In some embodiments, the proxy server, before uploading the file to the cloud server, is further configured to encrypt the file if it is determined that the received file is a sensitive file.
In a third aspect, the present invention further provides a file uploading control device, which includes a transceiver module, a configuration module, and a recording module;
the receiving and sending module is used for receiving a message sent by equipment where a file to be uploaded is located, wherein the message comprises a request message and an uploading success message, the request message at least comprises attribute information of the file to be uploaded and/or attribute information of the equipment, and the receiving and sending module is also used for sending a URL (uniform resource locator) address of the file to be uploaded, which is generated by the configuration module, to the equipment;
the configuration module is used for analyzing a configuration rule according to the request message and distributing a file ID for the file to be uploaded; the configuration rule is used for determining an uploading mode of the file to be uploaded, the uploading mode comprises direct storage and transfer storage, and the file ID is characterized by a unique identifier of the file to be uploaded; the file uploading method comprises the steps that if the uploading mode is determined to be direct storage, the URL address of a file to be uploaded of the cloud server is generated according to a first preset rule and the file ID; if the uploading mode is determined to be unloading, generating a URL address of the file to be uploaded of the proxy server according to a second preset rule and the file ID;
and the recording module is used for generating an index record according to the uploading success message received by the transceiver module.
In a fourth aspect, the present invention also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the method of any one of the first aspect when executing the computer program.
In a fifth aspect, the invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the first aspects.
The invention has the beneficial effects that: the method and the device have the advantages that direct storage and transfer storage are distributed and managed for uploaded files through the signaling server, so that two modes of direct storage and transfer storage of the same network exist together, the device end only needs to send a request and upload the files through the received URL address, the files can be automatically uploaded without additionally selecting the direct storage and the transfer storage, multiple development codes do not need to be additionally developed to match with compatibility requirements of different servers, the problem that different codes need to be developed due to the fact that different servers are uploaded by the device end is solved, and the configuration rules of the technical scheme can be flexibly configured according to different scenes and requirements to automatically switch the direct storage and the transfer storage.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic diagram of a systematic architecture and an interaction process according to an embodiment of the present invention;
fig. 2 is a signaling flowchart of a file uploading method according to an embodiment of the present invention;
fig. 3 is a signaling flowchart of a dump upload mode according to an embodiment of the present invention;
fig. 4 is a signaling flowchart of a direct memory upload method according to an embodiment of the present invention;
fig. 5 is a signaling flowchart of another offload upload mode according to an embodiment of the present invention;
fig. 6 is a URL address illustration of a direct memory upload method according to an embodiment of the present invention;
fig. 7 is a URL address illustration of a load upload method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present invention.
It is to be understood that the terms first, second, and the like in the description of the embodiments of the invention are used for distinguishing between the descriptions and not necessarily for describing a sequential or chronological order.
The term "and/or" in the embodiment of the present invention is only one kind of association relationship describing an associated object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The device of the invention comprises various terminal devices which can upload files to be saved through a network, such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a monitoring device, various industrial devices which can be networked, an intelligent home, a wearable device and the like, and the type and the number are not limited; the sending of the message and the uploading of the file are transmitted through a network, which may be a wired network or a wireless network, and is not limited herein.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
Fig. 1 exemplarily shows an applicable systematic architecture and a transmission interaction process related to a file to be uploaded, which are applicable to the embodiment of the present invention, and the systematic architecture may include onesignaling server 100,multiple devices 200,multiple proxy servers 300, andmultiple cloud servers 400.
It should be noted that fig. 1 illustrates an interaction process of a file to be uploaded related to the present invention, and does not refer to a transmission path of an actual network, and in the actual network interaction process, an information interaction process may exist between thesignaling server 100 and thecloud server 400 and between thesignaling server 100 and theproxy server 300, and the technical solution of the present invention is mainly described with respect to the interaction process of the file to be uploaded, so the information interaction process between thesignaling server 100 and thecloud server 400 and between thesignaling server 100 and theproxy server 300 is not described in the present invention.
Thesignaling server 100 and thedevice 200 are located in the same local area network, theproxy server 300 may be configured by itself, may be located in the same local area network as thedevice 200, or may not be located in the same local area network, and thecloud server 400 is usually leased and is not generally located in the same local area network as thecurrent device 200, such as various network disks, cloud disks, and the like.
Thecurrent device 200 needs to pass through thesignaling server 100 and apply for the file when needing to upload the file, so thesignaling server 100 generally has a role of a gateway, and can be limited by a program or other manners, so that thecurrent device 200 needs to pass through thesignaling server 100 when having the file to upload.
Based on the above-mentioned architecture, the following embodiments of the present invention are described by taking onedevice 200, onesignaling server 100, oneproxy server 300, and onecloud server 400 as examples, and it should be understood by those skilled in the art that if there aremultiple devices 200,multiple proxy servers 300, andmultiple cloud servers 400 at the same time, the technical solutions thereof can be implemented, and the description is only for simplicity.
A method of uploading a file, the method comprising:
receiving a request message sent by equipment where a file to be uploaded is located, wherein the request message at least comprises attribute information of the file to be uploaded and/or attribute information of the equipment;
analyzing a configuration rule according to the request message, and distributing a file ID for the file to be uploaded, wherein the configuration rule is used for determining an uploading mode of the file to be uploaded, the uploading mode comprises direct storage and transfer storage, and the file ID is characterized by a unique identifier of the file to be uploaded;
if the uploading mode is determined to be direct storage, generating a URL (uniform resource locator) address of a file to be uploaded of the cloud server according to a first preset rule and the file ID, and sending the URL address to the equipment; if the uploading mode is determined to be unloading, generating a URL (uniform resource locator) address of the file to be uploaded of the proxy server according to a second preset rule and the file ID, and sending the URL address to the equipment;
and receiving an uploading success message sent by the equipment where the file to be uploaded is successfully sent according to the received URL address, and generating an index record according to the uploading success message, wherein the index record is used for searching the file to be uploaded.
Hereinafter, referring to fig. 2, a description is given through a specific embodiment, and fig. 2 is a signaling flowchart of a file uploading method provided in this embodiment.
S201: receiving a request message sent by equipment where a file to be uploaded is located;
when thedevice 200 needs to upload a file, a request is sent to thesignaling server 100, request information is sent in the form of a message, and thesignaling server 100 receives the request message sent by thedevice 200.
The sent request message at least includes attribute information of a file to be uploaded and/or attribute information of the device, where the attribute information of the file to be uploaded, for example, may include size information of the file, type information of the file, and name information of the file, and if thedevice 200 has multiple files to be uploaded, the multiple files may send request messages to the signaling server in multiple request forms, respectively; the attribute information of the device may include, for example, name information of thedevice 200 where the request information is sent, port number information of thedevice 200, current network speed information of the device, and the like, and specifically, content carried by the request information may be reasonably set according to actual needs.
S202: analyzing a configuration rule according to the request message, and distributing a file ID for the file to be uploaded;
after thesignaling server 100 receives the request message, the configuration rule is analyzed according to the information contained in the request message, the configuration rule may be embodied in the form of a configuration table stored in a database, may also be embodied in the form of a general notepad, may also be embodied in the form of an editable xml format code, the specific manner is not limited, the configuration rule is self-defined and flexibly adjustable according to the actual need, and the configuration rule is matched with the information carried in the request message.
The configuration rule is used for determining an uploading mode of a file to be uploaded, the uploading mode comprises a direct storage mode and a transfer mode, the direct storage mode is that theequipment 200 directly uploads data to the specifiedcloud server 400, the transfer mode is that theequipment 200 uploads the data through theproxy server 300, and theproxy server 300 uploads the data to thecloud server 400 for storage after receiving the data. Whether direct or dump is used is defined by the configuration rules of thesignaling server 100.
After thesignaling server 100 receives the request message, it is determined that there is a file to be uploaded, and therefore, an ID needs to be allocated to the file to be uploaded, and the file ID is characterized as a unique identifier of the file to be uploaded, that is, the received file is renamed again, so as to ensure that various files uploaded by different devices do not conflict with each other.
S203: if the uploading mode is determined to be direct storage, generating a URL (uniform resource locator) address of a file to be uploaded of the cloud server according to a first preset rule and the file ID; if the uploading mode is determined to be unloading, generating a URL address of the file to be uploaded of the proxy server according to a second preset rule and the file ID;
if the uploading mode is determined to be direct storage, that is, the device 200 directly uploads data to the designated cloud server 400, the URL address of the file to be uploaded of the cloud server is generated according to a first preset rule and the file ID, the first preset rule is defined according to rules of different cloud servers and can include, but is not limited to, a network address where the cloud server is located, a storage path of the file, and the like, the file ID is a representation uniqueness identifier allocated by the signaling server 100 for the device to be uploaded, so that the files to be uploaded do not conflict with each other, and the URL address of the file to be uploaded of the cloud server generated according to the first rule and the ID of the file can ensure uniqueness; if the uploading mode is determined to be unloading, the URL address of the file to be uploaded of the proxy server is generated according to a second preset rule and the file ID, the second preset rule is defined according to different rules of the proxy server, and the proxy server is usually set by self, so that various flexibility settings can be performed according to needs, the URL address of the file to be uploaded of the proxy server is generated according to the second preset rule and the file ID, and the uniqueness can also be ensured.
S204: sending the generated URL address to equipment where the file to be uploaded is located;
and if the direct storage mode is determined, the URL address of the file to be uploaded of the cloud server is sent to the equipment where the file to be transmitted is located, and if the direct storage mode is determined, the URL address of the file to be uploaded of the proxy server is sent to the equipment where the file to be transmitted is located. For the equipment terminal, the file is uploaded only according to the received URL address, and the file is uploaded only according to the URL address without knowing whether the uploaded file is a proxy server or a cloud server.
If the URL address is of the proxy server side, the equipment side uploads the file to be uploaded to the proxy server, and if the URL address is of the cloud server side, the equipment side uploads the file to be uploaded to the cloud server. The information interaction between the signaling server and the proxy server and between the signaling server and the cloud server is not described in the invention.
S205, receiving an uploading success message sent by the equipment where the file to be uploaded is located after the file to be uploaded is successfully sent according to the received URL address;
after the device finishes uploading the file, the message that the file is successfully uploaded is sent to thesignaling server 100. After thesignaling server 100 receives an upload success message sent by the device end according to the received URL address, the upload success message being sent after the file to be uploaded is successfully sent, the upload success of the current file to be uploaded can be confirmed.
S206: generating an index record according to the uploading success message;
and the signaling server receives the success message, generates an index record according to the success message after confirming that the current file to be uploaded is successfully uploaded, and the index form is not limited and is used for searching the file to be uploaded.
According to the technical scheme, direct storage and transfer storage are distributed and managed for the uploaded files through the signaling server, so that two modes of direct storage and transfer storage of the same network exist together, the equipment end only needs to send a request and upload the files through the received URL addresses, the files can be automatically uploaded without additionally selecting the direct storage and the transfer storage, multiple sets of development codes are not required to be additionally developed to match the compatibility requirements of different servers, the problem that different codes need to be developed due to the fact that the equipment end uploads different servers is solved, the files to be uploaded can be managed through the transfer proxy server, and the configuration rules of the technical scheme can be automatically switched between the direct storage and the transfer storage according to different scenes and flexible configuration rules needed.
Optionally, as an embodiment, if a parameter of a network environment where the device is located changes, the configuration rule is adjusted according to the changed network environment.
The following description will be made by specific examples.
Environmental parameters of the network in which the device is located include, but are not limited to: newly adding equipment, configuring relevant rules for the newly added equipment, or adopting the matching of general rules; the method comprises the following steps that the release state of equipment is adjusted, for example, the same equipment needs to be adjusted after a stable release stage is adjusted to a debugging stage, the configuration rule needs to be adjusted, the cost of a server needs to be reduced for the equipment in the stable release stage, and therefore the equipment in the stable release stage can be configured to be in a direct storage mode, and the equipment in the debugging stage needs to analyze data and process problems and further analyze an uploaded file through a proxy server, so that the equipment can be configured to be in a transfer storage mode; if the current device is only used for monitoring to generate video data and does not contain sensitive data, the device can be configured in a direct storage mode instead of a dump mode, for example, a device white list WhiteList is added, and devices in the device white list can be directly stored; if some format file formats of the currently uploaded files are focused on part of the equipment within a period of time, the uploaded file formats of the current equipment can be configured in a mode of unloading and other modes of direct storage, and when the current time period passes, the file formats can be configured in a mode of full direct storage; for another example, files with different properties are sent by different port numbers of part of devices, the port numbers can be configured, and different port numbers of the same device are set to be directly stored or transferred; or the storage space of the proxy server reaches a set threshold value and is uniformly converted into direct storage; or a direct memory mode is adopted in a certain time period, and a transfer mode is adopted in a certain time period. In actual use, the configuration rule can be adjusted according to actual needs.
According to the technical scheme, when the network environment parameters of the equipment change, the configuration rule is adjusted according to the changed network environment, the adjustment can be freely performed according to actual needs, and the setting is flexible, so that the automatic switching between direct storage and transfer storage is realized.
Optionally, as an embodiment, the attribute information of the file to be uploaded includes: one or a combination of type information of the file to be uploaded and size information of the file to be uploaded; the attribute information of the device includes: one or a combination of name information of equipment where the file to be uploaded is located and port number information used when the file is uploaded by the equipment; the configuration rule comprises one or a combination of attribute information of the file to be uploaded and/or attribute information of the equipment.
When the device where the file to be uploaded is located needs to upload the file, a request needs to be sent to a signaling server, the request message at least contains one or a combination of attribute information of the uploaded file and/or attribute information of the device, the configuration rule is corresponding to the request message, namely, the configuration rule determines whether to directly store or transfer the file according to the attribute information of the uploaded file and/or the attribute information of the device, and the attribute information of the file to be uploaded comprises: one or a combination of type information of the file to be uploaded and size information of the file to be uploaded, wherein the attribute information of the equipment comprises: at least any one of or a combination of name information of a device where the file to be uploaded is located and port number information used when the file is uploaded by the device can determine the configuration rule. If the type information of the uploaded files is judged to be a data file through the suffix names of the uploaded files, the uploaded files are determined to be transferred, and if the type information is judged to be a video file through the suffix names of the uploaded files, the uploaded files are directly stored; if the size of the uploaded file is larger than a preset value, adopting direct storage, wherein the direct storage is adopted if the size of the file to be uploaded is larger than or equal to 128M, and the transfer is adopted if the size of the file to be uploaded is smaller than 128M; if a certain device is a key device, transferring, for example, determining whether to directly transfer or transfer by setting a device list; or the file uploaded by a certain port of a certain device needs to be transferred and stored, and the file uploaded by other ports is directly stored; the configuration rule includes one or a combination of attribute information of the file to be uploaded and/or attribute information of the device, that is, the information can determine direct storage or transfer storage.
Optionally, as an embodiment, if it is determined that the uploading manner is direct storage, generating a URL address of a file to be uploaded of the cloud server according to the first preset rule and the file ID includes:
and determining that the uploading mode is direct storage, acquiring authorized signature information of the cloud server, and generating a URL (uniform resource locator) address of the file to be uploaded of the cloud server according to the authorized signature information, the network address of the cloud server, the storage path of the cloud server and the file ID.
Optionally, as an embodiment, the URL address of the file to be uploaded of the cloud server also carries authorization information of the file to be uploaded, where the authorization information is used to indicate an upload time limit and/or an upload permission of the file to be uploaded.
Referring to fig. 6, fig. 6 is a URL address illustration of a direct memory upload method provided in this embodiment.
If the uploading mode is determined to be direct storage, the signaling server needs to acquire authorization information from the cloud server, where the authorization information may include an authorized information account, signature information, and the like, and certainly, the authorization information may also be pre-stored in the signaling server, and requirements of authorization information of different cloud servers may be different from each other, taking actual as a reference, only the authorization signature information of the cloud server needs to be acquired, the acquisition mode is not limited, and after the authorization information of the cloud server is acquired, a URL address of a file to be uploaded of the cloud server may be generated according to a network address of the cloud server, a storage path of the cloud server, and a file ID, and the generated URL address may be shown in fig. 6. The network address of the cloud server generally does not change, as shown in part a in fig. 6, the storage path of the cloud server is generally defined by the signaling server according to the authorization information and the file attribute information, but the storage path of the cloud server may also be specified or in other manners, which is not defined here, such as part B in fig. 6, it should be noted that part B in fig. 6 contains the authorization information, that is, contains the account information and the signature information, and is the content encrypted according to the rule of the cloud server, and the cloud server automatically analyzes and determines to upload the file according to the rule after receiving the content; the ID of the file is previously allocated to the file to be uploaded by the signaling server, the ID of the file is the name of the file after the file to be uploaded is successfully uploaded, as shown in part C and part C in fig. 6, pdf represents the type of the file to be uploaded, and the URL address of the file to be uploaded of the cloud server can be generated after the information is provided, the generated exemplary URL address is shown in fig. 6, the manner of generating the address is related to the setting of each cloud server, different cloud servers have different generation manners, and the signaling server generates a corresponding URL uploading address according to the rule of the cloud server.
Certainly, in the process of generating the URL address of the cloud server, part of the URL address may also carry authorization information of the file to be uploaded, where the authorization information is used to indicate an upload time limit and/or an upload permission of the file to be uploaded, that is, for the device to which the file is to be uploaded, the cloud server may limit the time limit and/or the upload permission of the file to be uploaded, and in the process of generating the URL address of the file to be uploaded of the cloud server by the signaling server, the URL address generated according to the corresponding rule of the cloud server may carry the authorization information, for example, part B in fig. 6, and the cloud server may automatically analyze according to the rule.
Optionally, as an embodiment, if it is determined that the uploading manner is unloading, generating a URL address of the file to be uploaded of the proxy server according to a second preset rule and the file ID, specifically including: and determining that the uploading mode is unloading, and splicing to generate the URL address of the file to be uploaded of the proxy server according to the domain name information of the proxy server, the storage path of the proxy server and the file ID.
Referring to fig. 7, fig. 7 is a URL address illustration of a dump upload method provided in this embodiment.
If the uploading mode is determined to be unloading, the data to be uploaded needs to be uploaded to the proxy server, and after the uploading is finished, the proxy server uploads the data to the cloud server. The proxy server is generally self-configured, and the security is higher than that of a common cloud server, so that no additional authorization information is added to ensure the security, and the additional authorization information may be added if necessary, which is described herein without including authorization information. After the transfer is determined, according to the domain name information of the proxy server, the storage path of the proxy server and the file ID, the three are spliced to generate the URL address of the file to be uploaded, the domain name information of the proxy server is usually not changed, the storage path is defined by the signaling server according to the file to be stored, the ID of the file is previously distributed to the file to be uploaded by the signaling server, the ID of the file is the name of the file which is successfully uploaded to the file to be uploaded, and the URL address of the file to be uploaded is generated after the three are spliced, as shown in FIG. 7, part A of the graph 7 is the domain name information of the proxy server, part B of the storage path of the proxy server and part C of the ID, and after the equipment receives the URL address, the equipment analyzes according to rules to judge the domain name information of the file to be uploaded, the path of the file to be uploaded and the distributed file ID, and completes the uploading operation.
Optionally, as an embodiment, generating an index record according to the upload success message specifically includes: and searching a storage path of an uploading server corresponding to the uploading file ID according to the uploading file ID in the uploading success message, taking the uploading file ID as a keyword, and taking the uploading server and the storage path corresponding to the uploading file ID as fields to generate an index record.
When the file is successfully uploaded, the signaling server receives an uploading success message sent by the device where the file to be uploaded is successfully sent according to the received URL address, which indicates that the device successfully uploads the file according to the allocated file ID, and the signaling server needs to record storage information of the current file to be uploaded so as to search the file in a cloud server or a proxy server, that is, index information of the file to be uploaded is used for searching the file to be uploaded, and the index information is generally recorded in a database, and can be naturally stored in other forms, which is not limited here, and the file to be uploaded can be found through the index information.
Optionally, as an embodiment, the present invention further provides a file uploading system, including: a signaling server, a proxy server and a cloud server;
the signaling server is used for receiving a message sent by equipment where a file to be uploaded is located, wherein the message comprises a request message and an uploading success message; analyzing a configuration rule according to the request message, and distributing a file ID for the file to be uploaded, wherein the configuration rule is used for determining an uploading mode of the file to be uploaded, the uploading mode comprises direct storage and transfer storage, and the file ID is characterized by a unique identifier of the file to be uploaded; the file uploading method comprises the steps that if the uploading mode is determined to be direct storage, a URL address of a file to be uploaded of the cloud server is generated according to a first preset rule and a file ID, and the URL address is sent to the equipment; if the uploading mode is determined to be unloading, generating a URL (uniform resource locator) address of the file to be uploaded of the proxy server according to a second preset rule and the file ID, and sending the URL address to the equipment; the system is also used for generating an index record according to the uploading success message;
the proxy server is used for receiving the file to be uploaded sent by the equipment and returning the transmission result to the equipment; the file uploading device is also used for uploading the file to the cloud server after the file to be uploaded is successfully received;
and the cloud server is used for receiving the file to be uploaded and returning the transmission result to the sender.
As shown in fig. 3 and fig. 4, fig. 3 is a signaling flowchart of a to-be-uploaded file dump and upload method according to an embodiment of the present invention, fig. 4 is a signaling flowchart of a to-be-uploaded file direct store and upload method according to an embodiment of the present invention, and fig. 3 and fig. 4 briefly describe functions of a part of thesignaling server 100.
The signalingserver 100 has been described above, and will not be described herein.
If the file is to be uploaded, as shown in fig. 3, theproxy server 300 returns a transmission result of thedevice 200 after receiving the file to be uploaded sent by thedevice 200 successfully, for example, a message of successful reception is sent, theproxy server 300 sends the file to be uploaded to thecloud server 400 after receiving the file successfully, and thecloud server 400 returns the message of successful reception to theproxy server 300 after receiving the file to be uploaded successfully.
If the file is in the direct storage uploading mode, as shown in fig. 4, thecloud server 400 directly receives the file to be uploaded sent by thedevice 200, and returns a message that thedevice 200 successfully receives the file after the file is successfully received.
For thecloud server 400, whether the file to be uploaded is sent from theproxy server 300 or the file to be uploaded is sent from thedevice 200, the file to be uploaded is received and a transmission result message, such as a successful reception message, is returned to the sender according to the transmission result.
Optionally, as an embodiment, before uploading the file to the cloud server, the proxy server is further configured to encrypt the file if it is determined that the received file is a sensitive file.
Fig. 5 is a signaling flowchart of another transfer uploading method according to an embodiment of the present invention, as shown in fig. 5, if a file received by theproxy server 300 is determined to be a sensitive file, for example, a device that sends a file to be uploaded is an important device, or a file with a certain specified file format is an important file, or a file to be uploaded includes fields with certain field contents, and the like, the determination may be specifically performed according to actual needs, and if the file to be uploaded is determined to be a sensitive file, the file is encrypted and then uploaded, so as to ensure data security of the file to be uploaded.
Certainly, theproxy server 300 may also analyze the uploaded file, and analyze the uploaded file data according to actual needs, because theproxy server 300 is generally set up by itself, the analyzable content and the analysis flexibility are higher, which is not illustrated here, and those skilled in the art may perform various analyses according to actual needs.
Based on the same inventive concept, the invention also provides a file uploading control device, comprising: the device comprises a transceiving module, a configuration module and a recording module;
the device comprises a receiving and sending module, a configuration module and a sending and receiving module, wherein the receiving and sending module is used for receiving a message sent by equipment where a file to be uploaded is located, the message comprises a request message and an uploading success message, the request message at least comprises attribute information of the file to be uploaded and/or attribute information of the equipment, and the request message is also used for sending a URL (uniform resource locator) address of the file to be uploaded, which is generated by the configuration module, to the equipment;
the configuration module is used for analyzing a configuration rule according to the request message and distributing a file ID for the file to be uploaded; the configuration rule is used for determining an uploading mode of the file to be uploaded, the uploading mode comprises direct storage and transfer storage, and the file ID is characterized as a unique identifier of the file to be uploaded; the file uploading method comprises the steps that if the uploading mode is determined to be direct storage, the URL address of a file to be uploaded of the cloud server is generated according to a first preset rule and a file ID; if the uploading mode is determined to be unloading, generating a URL address of the file to be uploaded of the proxy server according to a second preset rule and the file ID;
and the recording module is used for generating an index record according to the uploading success message received by the transceiver module.
Based on the same inventive concept, the present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and is characterized in that the processor implements the method of any one of the above embodiments when executing the computer program.
Based on the same inventive concept, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method of any of the above embodiments.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (12)

the signaling server is used for receiving a message sent by equipment where a file to be uploaded is located, wherein the message comprises a request message and an uploading success message; analyzing a configuration rule according to the request message, and distributing a file ID for the file to be uploaded, wherein the configuration rule is used for determining an uploading mode of the file to be uploaded, the uploading mode comprises direct storage and transfer storage, and the file ID is characterized by a unique identifier of the file to be uploaded; the file uploading method comprises the steps that if the uploading mode is determined to be direct storage, a URL address of a file to be uploaded of the cloud server is generated according to a first preset rule and the file ID, and the URL address is sent to the equipment; if the uploading mode is determined to be unloading, generating a URL (uniform resource locator) address of a file to be uploaded of the proxy server according to a second preset rule and the file ID, and sending the URL address to the equipment; the server is also used for generating an index record according to the uploading success message;
the configuration module is used for analyzing a configuration rule according to the request message and distributing a file ID for the file to be uploaded; the configuration rule is used for determining an uploading mode of the file to be uploaded, the uploading mode comprises direct storage and transfer storage, and the file ID is characterized by a unique identifier of the file to be uploaded; the file uploading method comprises the steps that if the uploading mode is determined to be direct storage, the URL address of a file to be uploaded of the cloud server is generated according to a first preset rule and the file ID; if the uploading mode is determined to be unloading, generating a URL address of the file to be uploaded of the proxy server according to a second preset rule and the file ID;
CN202111640501.2A2021-12-292021-12-29File uploading method, system, equipment and storage mediumActiveCN114390044B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111640501.2ACN114390044B (en)2021-12-292021-12-29File uploading method, system, equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111640501.2ACN114390044B (en)2021-12-292021-12-29File uploading method, system, equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN114390044Atrue CN114390044A (en)2022-04-22
CN114390044B CN114390044B (en)2024-05-14

Family

ID=81199640

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111640501.2AActiveCN114390044B (en)2021-12-292021-12-29File uploading method, system, equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN114390044B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114726849A (en)*2022-06-102022-07-08武汉四通信息服务有限公司 File transfer method, apparatus, server, and computer-readable storage medium
CN114745374A (en)*2022-06-102022-07-12武汉四通信息服务有限公司File transmission method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20160057201A1 (en)*2013-04-022016-02-25Huawei Technologies Co., Ltd.File Uploading Method, Client, and Application Server in Cloud Storage, and Cloud Storage System
JP2017073084A (en)*2015-10-092017-04-13キヤノン株式会社Document management system, document management server, information processing device, document management method, and program
CN109271363A (en)*2018-09-172019-01-25平安科技(深圳)有限公司A kind of method and apparatus of file storage
CN110311880A (en)*2018-03-202019-10-08中移(苏州)软件技术有限公司 File upload method, device and system
CN110493350A (en)*2019-08-272019-11-22北京百度网讯科技有限公司File uploading method and device, electronic equipment and computer-readable medium
CN111092916A (en)*2018-10-232020-05-01武汉斗鱼网络科技有限公司File uploading method and device, electronic equipment and medium
CN111273940A (en)*2018-12-052020-06-12北京奇虎科技有限公司 Method and device for uploading program files to code warehouse
CN113098927A (en)*2021-03-112021-07-09厦门亿联网络技术股份有限公司Picture uploading and downloading method of cloud storage network disk
CN113810454A (en)*2021-01-152021-12-17北京沃东天骏信息技术有限公司File transmission method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20160057201A1 (en)*2013-04-022016-02-25Huawei Technologies Co., Ltd.File Uploading Method, Client, and Application Server in Cloud Storage, and Cloud Storage System
JP2017073084A (en)*2015-10-092017-04-13キヤノン株式会社Document management system, document management server, information processing device, document management method, and program
CN110311880A (en)*2018-03-202019-10-08中移(苏州)软件技术有限公司 File upload method, device and system
CN109271363A (en)*2018-09-172019-01-25平安科技(深圳)有限公司A kind of method and apparatus of file storage
CN111092916A (en)*2018-10-232020-05-01武汉斗鱼网络科技有限公司File uploading method and device, electronic equipment and medium
CN111273940A (en)*2018-12-052020-06-12北京奇虎科技有限公司 Method and device for uploading program files to code warehouse
CN110493350A (en)*2019-08-272019-11-22北京百度网讯科技有限公司File uploading method and device, electronic equipment and computer-readable medium
CN113810454A (en)*2021-01-152021-12-17北京沃东天骏信息技术有限公司File transmission method and device, electronic equipment and storage medium
CN113098927A (en)*2021-03-112021-07-09厦门亿联网络技术股份有限公司Picture uploading and downloading method of cloud storage network disk

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王博;吴健;: "一种网络文件安全存储系统的设计与实现", 微型电脑应用, no. 08*
罗斌;巴继东;: "基于Iframe内联框架的异步文件上传与删除", 电子设计工程, no. 12*

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114726849A (en)*2022-06-102022-07-08武汉四通信息服务有限公司 File transfer method, apparatus, server, and computer-readable storage medium
CN114745374A (en)*2022-06-102022-07-12武汉四通信息服务有限公司File transmission method and device, electronic equipment and storage medium

Also Published As

Publication numberPublication date
CN114390044B (en)2024-05-14

Similar Documents

PublicationPublication DateTitle
CN108255905B (en)Interface calls data processing method, device and computer equipment
CN110856126B (en)Information reporting and receiving method, terminal equipment and storage medium
EP1921871B1 (en)A method and download agent for downloading in parallel
EP3057281B1 (en)M2m application remote registration method, device, system and storage medium
CN111913738B (en)Access request processing method, device, computing equipment and medium
CN112788126A (en)Resource downloading method, device, server and storage medium
CN107105050B (en)Storage and downloading method and system for service objects
EP1758042A1 (en)Document distribution system and method
CN107172070B (en) Resource access processing method and device
CN109618176B (en)Processing method, equipment and storage medium for live broadcast service
CN114390044B (en)File uploading method, system, equipment and storage medium
CN113742300B (en)Log management method, device, server side and system
CN111176706A (en)Terminal upgrading method and device, electronic equipment and storage medium
CN111683114A (en)Method and device for upgrading equipment program, terminal equipment and storage medium
US20090125803A1 (en)Method, system, client and server for managing xml document
CN108173839A (en) Rights management method and system
CN119544702A (en) Log data processing method, system and computer device
CN115174592A (en)Enterprise-level data request forwarding system and method
US20160188748A1 (en)Method for providing information to determine a graph associated with a data item
CN104346101A (en)Dynamic storage space allocation system and method
CN119324940A (en)Object pushing method and device and related equipment
CN115130040A (en)Hybrid application page skipping method and device, electronic equipment and storage medium
CN118054983A (en)Network access equipment control method and device, electronic equipment and storage medium
CN111767524B (en)Authority management method, device, system, server and medium
CN111404979B (en)Method and device for processing service request and computer readable storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp