Method and apparatus for acquiring resource
First Claim
1. A method for acquiring a resource comprising:
- receiving, by a storage server, a resource check request from a first client, the resource check request carrying resource information of a resource to be uploaded by the first client, an identifier of an external link created by a second client, and storage location information corresponding to the external link;
searching, by the storage server, according to the identifier of the external link, a database configured to store external-link information for attributes of the external link corresponding to the identifier of the external link, the database comprising a data table, the data table comprising a plurality of rows and a plurality of columns, each row comprising information for a different resource stored in the database, a first one of the columns comprising the identifier of the external link, the other columns comprising attributes of the resource, and the attributes comprising a title, a content description, a format, a threshold size, a validity period, a password, and a download right of the corresponding resource;
checking the resource information according to a value of the found attribute, the resource information being checked by;
determining that a size of the resource corresponding to the resource information is not greater than the threshold size;
comparing words in the title of the resource information and words in the content description of the resource information with words in a database of sensitive words;
comparing the format of the resource with allowed file format extensions;
comparing a time with the validity period of the resource;
comparing an input password with the password stored in the data table; and
comparing an identity associated with the first client with the download right of the resource;
storing, by the storage server, the acquired resource or acquired resource location information, when the check succeeds, according to the storage location information;
providing, by the storage server, a resource information list to the first client, the resource information list comprising resource information of resources stored at the storage server from the first client;
receiving, by the storage server, a resource download request corresponding to one of the resources; and
sending, by the storage server, a resource download response that carries the one of the resources.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and an apparatus for acquiring a resource. An embodiment of the present invention provides a method for acquiring a resource, including receiving, by a storage server, a resource check request sent by a first client, where the resource check request carries resource information of a resource to be uploaded by the first client, an identifier of an external link created by a second client, and storage location information corresponding to the external link; searching, by the storage server, according to the identifier, a database configured to store external-link information for an attribute of the external link corresponding to the identifier of the external link, and checking the resource information according to a value of the found attribute; and if the check succeeds, storing, by the storage server the acquired resource or acquired resource location information according to the storage location information.
-
Citations
23 Claims
-
1. A method for acquiring a resource comprising:
-
receiving, by a storage server, a resource check request from a first client, the resource check request carrying resource information of a resource to be uploaded by the first client, an identifier of an external link created by a second client, and storage location information corresponding to the external link; searching, by the storage server, according to the identifier of the external link, a database configured to store external-link information for attributes of the external link corresponding to the identifier of the external link, the database comprising a data table, the data table comprising a plurality of rows and a plurality of columns, each row comprising information for a different resource stored in the database, a first one of the columns comprising the identifier of the external link, the other columns comprising attributes of the resource, and the attributes comprising a title, a content description, a format, a threshold size, a validity period, a password, and a download right of the corresponding resource; checking the resource information according to a value of the found attribute, the resource information being checked by; determining that a size of the resource corresponding to the resource information is not greater than the threshold size; comparing words in the title of the resource information and words in the content description of the resource information with words in a database of sensitive words; comparing the format of the resource with allowed file format extensions; comparing a time with the validity period of the resource; comparing an input password with the password stored in the data table; and comparing an identity associated with the first client with the download right of the resource; storing, by the storage server, the acquired resource or acquired resource location information, when the check succeeds, according to the storage location information; providing, by the storage server, a resource information list to the first client, the resource information list comprising resource information of resources stored at the storage server from the first client; receiving, by the storage server, a resource download request corresponding to one of the resources; and sending, by the storage server, a resource download response that carries the one of the resources. - View Dependent Claims (2, 3, 4, 5, 6, 7, 22)
-
-
8. A method for acquiring a resource comprising:
-
acquiring, by a first client, resource information of a resource to be uploaded; sending, by the first client, a resource check request to a storage server, the resource check request carrying the resource information, an identifier of an external link created by a second client, and storage location information corresponding to the external link, the identifier of the external link being used to search a database configured to store external-link information for attributes of the external link, the database comprising a data table, the data table comprising a plurality of rows and a plurality of columns, each row comprising information for a different resource stored in the database, a first one of the columns comprising the identifier of the external link, the other columns comprising attributes of the resource, the attributes comprising a title, a content description, a format, a threshold size, a validity period, a password, and a download right of the corresponding resource, the resource information being checked according to a value of the found attribute, the acquired resource being stored by the storage server according to the storage location information after the check succeeds, the check succeeding when a size of the resource corresponding to the resource information is not greater than the threshold size, the check succeeding when words in the title of the resource information and words in the content description of the resource information are not included in a database of sensitive words, the check succeeding when the format of the resource matches allowed file format extensions, the check succeeding when a time is within the validity period of the resource, the check succeeding when an input password matches the password stored in the data table, and the check succeeding when an identity associated with the first client is included within the download right of the resource; receiving, by the first client from the storage server, a resource information list that comprises resource information of resources stored at the storage server by the first client; sending, by the first client, a resource download request corresponding to one of the resources; and receiving, by the first client from the storage server, a resource download response that carries the one of the resources. - View Dependent Claims (9, 10, 21, 23)
-
-
11. A storage server comprising:
-
a memory comprising instructions; and a processor coupled to the memory, the instructions executed by the processor causing the storage server to be configured to; receive a resource check request from a first client, the resource check request carrying resource information of a resource to be uploaded by the first client, an identifier of an external link created by a second client, and storage location information corresponding to the external link; search, according to the identifier of the external link, a database configured to store external-link information for attributes of the external link corresponding to the identifier of the external link, the database comprising a data table, the data table comprising a plurality of rows and a plurality of columns, each row comprising information for a different resource stored in the database, a first one of the columns comprising the identifier of the external link, the other columns comprising attributes of the resource, and the attributes comprising a title, a content description, a format, a threshold size, a validity period, a password, and a download right of the corresponding resource; check, according to a value of the found attribute, the resource information, the resource information being checked by; determining that a size of the resource corresponding to the resource information is not greater than the threshold size; comparing words in a title of the resource information and words in a content description of the resource information with words in a database of sensitive words; comparing the format of the resource with allowed file format extensions; comparing a time with the validity period of the resource; comparing an input password with the password stored in the data table; and comparing an identity associated with the first client with the download right of the resource; store the acquired resource or acquired resource location information according to the storage location information after the check is successfully performed; provide a resource information list to the first client, the resource information list comprising resource information of resources stored at the storage server from the first client; receive a resource download request corresponding to one of the resources; and send a resource download response that carries the one of the resources. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18)
-
-
19. A terminal comprising:
-
a memory comprising instructions; and a processor coupled to the memory, the instructions executed by the processor causing the terminal to be configured to; acquire resource information of a resource to be uploaded by the client; send a resource check request to a storage server, the resource check request carrying the resource information, an identifier of an external link created by a second client, and storage location information corresponding to the external link, the identifier of the external link being used to search a database configured to store external-link information for attributes of the external link, the database comprising a data table, the data table comprising a plurality of rows and a plurality of columns, each row comprising information for a different resource stored in the database, a first one of the columns comprising the identifier of the external link, the other columns comprising attributes of the resource, the attributes comprising a title, a content description, a format, a threshold size, a validity period, a password, and a download right of the corresponding resource, the resource information being checked according to a value of the found attribute, the acquired resource being stored by the storage server according to the storage location information after the check succeeds, the check succeeding when a size of the resource corresponding to the resource information is not greater than the threshold size, the check succeeding when words in the title of the resource information and words in the content description of the resource information are not included in a database of sensitive words, the check succeeding when the format of the resource matches allowed file format extensions, the check succeeding when a time is within the validity period of the resource, the check succeeding when an input password matches the password stored in the data table, and the check succeeding when an identity associated with the first client is included within the download right of the resource; receive, from the storage server, a resource information list that comprises resource information of resources stored at the storage server by the first client; send a resource download request corresponding to one of the resources; and receive, from the storage server, a resource download response that carries the one of the resources. - View Dependent Claims (20)
-
Specification