diff options
Diffstat (limited to 'public/upload.php')
| -rw-r--r-- | public/upload.php | 5 |
1 files changed, 3 insertions, 2 deletions
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); |
