File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
user_guide_src/source/libraries Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ public function __construct(string $path, bool $checkFile = false)
5959 *
6060 * Implementations SHOULD return the value stored in the "size" key of
6161 * the file in the $_FILES array if available, as PHP calculates this based
62- * on the actual size transmitted.
62+ * on the actual size transmitted. A RuntimeException will be thrown if the file
63+ * does not exist or an error occurs.
6364 *
6465 * @return false|int The file size in bytes, or false on failure
6566 */
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ Returns the size of the file in bytes:
5151.. literalinclude :: files/004.php
5252 :lines: 2-
5353
54+ A ``RuntimeException `` will be thrown if the file does not exist or an error occurs.
55+
5456getSizeByUnit()
5557===============
5658
@@ -60,6 +62,8 @@ the results in kilobytes or megabytes, respectively:
6062.. literalinclude :: files/005.php
6163 :lines: 2-
6264
65+ A ``RuntimeException `` will be thrown if the file does not exist or an error occurs.
66+
6367getMimeType()
6468=============
6569
You can’t perform that action at this time.
0 commit comments