diff options
| author | Eliot Whalan <ewhal@pantsu.cat> | 2016-06-19 00:21:04 +0200 |
|---|---|---|
| committer | Eliot Whalan <ewhal@pantsu.cat> | 2016-06-19 00:21:04 +0200 |
| commit | bbf66982fa132454a6dcff57e155f2fa14644a99 (patch) | |
| tree | 9fc971993d674ea79f913a577b263443b826d2d2 /static/php/classes/UploadedFile.class.php | |
| parent | e6caec189aaa24bf58fa777a2ad15e236778c53d (diff) | |
Move php directory to php/ to avoid confusion
Diffstat (limited to 'static/php/classes/UploadedFile.class.php')
| -rw-r--r-- | static/php/classes/UploadedFile.class.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/static/php/classes/UploadedFile.class.php b/static/php/classes/UploadedFile.class.php deleted file mode 100644 index 03b7429..0000000 --- a/static/php/classes/UploadedFile.class.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php - -class UploadedFile -{ - /* Public attributes */ - public $name; - public $mime; - public $size; - public $tempfile; - public $error; - - /** - * SHA-1 checksum - * - * @deprecated 2.1.0 To be replaced with SHA-256 hashing. - * @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; - } -} |
