From edfdd86ceb66211edb17f1a57930887beab01f32 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 22 Mar 2025 04:12:24 +0500 Subject: feat: show uploaded files --- public/upload.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'public/upload.php') diff --git a/public/upload.php b/public/upload.php index d73a975..5c4e3cb 100644 --- a/public/upload.php +++ b/public/upload.php @@ -54,8 +54,9 @@ try { json_response([ 'id' => $file_id, - 'ext' => $file_ext, - 'mime' => FILE_ACCEPTED_MIME_TYPES[$file_ext] + 'extension' => $file_ext, + 'mime' => FILE_ACCEPTED_MIME_TYPES[$file_ext], + 'size' => $file['size'] ], null, 201); } catch (RuntimeException $e) { json_response(null, $e->getMessage(), 400); -- cgit v1.2.3