diff options
| author | Austin Gillmann <alucard@cuntflaps.me> | 2017-01-04 02:21:43 +0100 |
|---|---|---|
| committer | Austin Gillmann <alucard@cuntflaps.me> | 2017-01-04 02:21:43 +0100 |
| commit | e594331a15c1ef486e71ada9edcbb3c21fb704ad (patch) | |
| tree | 41ba1d9d82c75d426154f7365a435f502bde52af /build/classes/UploadedFile.class.php | |
| parent | 0297f5d586367704027c64bb740615773dd703be (diff) | |
doh.
Diffstat (limited to 'build/classes/UploadedFile.class.php')
| -rw-r--r-- | build/classes/UploadedFile.class.php | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/build/classes/UploadedFile.class.php b/build/classes/UploadedFile.class.php deleted file mode 100644 index d90a9a4..0000000 --- a/build/classes/UploadedFile.class.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php - -class UploadedFile -{ - /* Public attributes */ - public $name; - public $mime; - public $size; - public $tempfile; - public $error; - - /** - * SHA-1 checksum - * - * @var string 40 digit hexadecimal hash (160 bits) - */ - private $sha1; - - /** - * Generates the SHA-1 or returns the cached SHA-1 hash for the file. - * - * @return string|false $sha1 - */ - public function getSha1() - { - if (!$this->sha1) { - $this->sha1 = sha1_file($this->tempfile); - } - - return $this->sha1; - } -} |
