summaryrefslogtreecommitdiff
path: root/public/upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/upload.php')
-rw-r--r--public/upload.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/upload.php b/public/upload.php
index 4baea62..0a6be1d 100644
--- a/public/upload.php
+++ b/public/upload.php
@@ -172,6 +172,8 @@ try {
throw new RuntimeException("Failed to save the file. Try again later.");
}
+ $file_data['size'] = filesize($file_path);
+
if (FILE_THUMBNAILS && !is_dir(FILE_THUMBNAIL_DIRECTORY) && !mkdir(FILE_THUMBNAIL_DIRECTORY, 0777, true)) {
throw new RuntimeException('Failed to create a directory for thumbnails');
}