Get User File Info

Description

Returns information about a user file identified by a file storage key.

By default this returns only an error number to indicate if the file storage key is valid and, if it is valid, the size of the file.

Set the parameter contentType to true to return a contentType for the file.

Set the parameter digest to a digest method (such as MD5) to return a digest of the content of the file. The list of permissible methods is available in the "MessageDigest algorithms" section of https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#MessageDigest.

The service runs without authority. (Knowledge of a file storage key indicates permission to read the file.)

Input

<GetUserFileInfo>
<storageKey/>
<contentType>false|true</contentType>
<digest/>
</GetUserFileInfo>

Output

<GetUserFileInfo>
<errorNumber>0</errorNumber> <fileSize/>
<contentType/>
<digest/>
</GetUserFileInfo>

contentType and digest are only returned if requested. contentType may be empty if the content type of a file cannot be determined.

Errors

102 - Not found

103 - Parameter error. This includes the condition where the digest type is not found.

Class

com.metrici.xerula.GetUserFileInfoService