Skip to content

Commit

Permalink
Added mime type to directory-JSON response
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambratolm authored and Ambratolm committed Feb 16, 2022
1 parent 23c7148 commit c762ab8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dir/json.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ function image_json($image_path) {
$image->name = basename($image_path);
$image->title = image_title($image->name);
$image->url = image_url($image_path);
$image->type = mime_content_type($image_path);
return json_encode($image);
}

Expand Down

0 comments on commit c762ab8

Please sign in to comment.