fix skit2

This commit is contained in:
hafifierahman
2022-04-13 10:59:09 +08:00
parent 7122f5f8c8
commit 27f1d3ac3d
2 changed files with 11 additions and 2 deletions
-1
View File
@@ -121,7 +121,6 @@ export default {
},
FuncHantar: function () {
console.log(this.item.image);
let formData = new FormData();
formData.append('image', this.item.image);
formData.append('kelulusan', this.selected);
+11 -1
View File
@@ -1,6 +1,7 @@
<?php
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Http;
/*
|--------------------------------------------------------------------------
@@ -14,7 +15,16 @@ use Illuminate\Support\Facades\Route;
*/
Route::get('/iframe', function () {
echo 'for iframe';
$cawangan=Http::get(config('api.url').'/admin/permohonan/viewfiles',[
'files_id' => 1
])->json();
return response(base64_decode($cawangan['data']), 200, [
'Content-type' => 'application/' . $cawangan['type'],
'Content-Disposition' => 'inline; filename='.$cawangan['filename']
]);
});
// Auth::routes();