This class provides an access to the uploaded source file, its characteristics, and allows saving it on a server.
The following tables list the members exposed by the UploadedFiles type.
Name | Description | |
---|---|---|
getContentLength() | Gets the value of the Content-length HTTP header. | |
getContentType() | Gets the value of the Content-type HTTP header. | |
getCreatedDateTime() | Gets creation date of the source file. | |
getFileName() | Gets name of the source file received on the server. | |
getFileSize() | Gets size of the source file. | |
getHashCodeMD2() | Gets MD2 hash value calculated for the source file. | |
getHashCodeMD5() | Gets MD5 hash value calculated for the source file. | |
getHashCodeSHA() | Gets SHA hash value calculated for the source file. | |
getHeight() | Gets height of the source file. | |
getHorizontalResolution() | Gets horizontal resolution of the source file. | |
getModifiedDateTime() | Gets last modification date of the source file. | |
getVerticalResolution() | Gets vertical resolution of the source file. | |
getWidth() | Gets width of the source file. |
Name | Description | |
---|---|---|
getSafeFileName($dirPath) | Returns a safe file name for the file if it would be saved to dirPath folder. | |
save($filename) | Saves the source file to the specified path. | |
saveToFolder($dirPath, $renameConflicted) | Saves the source file to the specified directory on a server avoiding name conflict. | |
validateHashCodeMD5() | Compares value returned by the getHashCodeMD5() method and MD5 hash code calculated for the source file server-side. | |
validateHashCodeSHA() | Compares value returned by the getHashCodeSHA() method and SHA hash code calculated for the source file server-side. |