summaryrefslogtreecommitdiff
path: root/public/upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/upload.php')
-rw-r--r--public/upload.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/public/upload.php b/public/upload.php
index a0810ef..11c0f15 100644
--- a/public/upload.php
+++ b/public/upload.php
@@ -108,6 +108,11 @@ try {
throw new RuntimeException('Invalid file format.');
}
+ // striping exif data
+ if (FILE_STRIP_EXIF && $is_media && !strip_exif($file['tmp_name'])) {
+ throw new RuntimeException('Failed to strip EXIF tags.');
+ }
+
$file_data = [
'size' => $file['size'],
'mime' => $file_mime,