summaryrefslogtreecommitdiff
path: root/php/classes/UploadedFile.class.php
diff options
context:
space:
mode:
authorileyd <akpu1@inventati.org>2016-06-28 23:10:10 +0200
committerGitHub <noreply@github.com>2016-06-28 23:10:10 +0200
commit88cfdb49b4f0a293f792ef35406abdafb084fdcb (patch)
tree99c0be4c95eb0b977fe2004188e2a34958201ed6 /php/classes/UploadedFile.class.php
parente01670d1bb7204051e076069f50fd68d55e8c92c (diff)
parent186b9bf0aed3638845544c1dad9f54297cc23413 (diff)
Merge pull request #2 from pomf/master
e;
Diffstat (limited to 'php/classes/UploadedFile.class.php')
m---------php0
-rw-r--r--php/classes/UploadedFile.class.php33
2 files changed, 0 insertions, 33 deletions
diff --git a/php b/php
new file mode 160000
+Subproject 5abbc323d7f64df5fcf16255db79de339dc7256
diff --git a/php/classes/UploadedFile.class.php b/php/classes/UploadedFile.class.php
deleted file mode 100644
index 03b7429..0000000
--- a/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;
- }
-}