test media
This commit is contained in:
@@ -29,6 +29,18 @@ class WrenchMedia extends BaseController
|
||||
}
|
||||
|
||||
public function apigate(){
|
||||
|
||||
$file = __DIR__ . DIRECTORY_SEPARATOR . "books.png";
|
||||
$fileData = exif_read_data($file);
|
||||
ob_start();
|
||||
header("Content-Type: " . $fileData["MimeType"]);
|
||||
header("Content-Length: " . $fileData["FileSize"]);
|
||||
readfile($file);
|
||||
ob_end_flush();
|
||||
|
||||
}
|
||||
public function apigate33(){
|
||||
|
||||
log_message('critical', "Oauth-Gate");
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
log_message('critical', "0002");
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 142 KiB |
Reference in New Issue
Block a user