나는 정말로 왜 return 문을 주석 처리 한 후에도 내 응용 프로그램이 다운로드를 허용하는지 이해하지 못합니다. 유선 !! 그들은 내가 허용 할 때 그들을 다운로드하는 것을 Ok, Got it
을 클릭 한 후 다운로드Laravel 4에서 다운로드 버튼을 테스트하는 방법은 무엇입니까?
내 노선은, 내가 짧은 지침 모달 채우기를 트리거하도록 Download
버튼이이
Route::get('catalog_downloads/{id}/download','[email protected]_download');
처럼 보인다. 여기
는public function file_download($id)
{
$catalog_download = CatalogDownload::findOrFail($id);
$distributor = Auth::user()->distributor()->first();
$export_type = $distributor->export_type()->first();
$product_export = $catalog_download->product_exports()->first();
$destinationPath = base_path().'/app/files/product_export/'. $catalog_download->id.'/'. $export_type->id.'/';
$file_name = $product_export->file_path;
$pathToFile = $destinationPath .$file_name;
// return Response::download($pathToFile);
}
의 모든 원인이 그것 때문에 modal
의가요 내 Ok, Get it
버튼 내 컨트롤러에서
<a href="/catalog_downloads/{{$catalog_download->id}}/download" class="btn btn-success btn-sm btn-next">
Ok, Got it.
<i class="fa fa-thumbs-up"></i>
</a>
내 다운로드 기능 여기 내 download
버튼
<a class="black" data-toggle="modal" data-target="#instruction">
<b class="cool-blue">
Download
</b>
</a>
입니다 이것들? 나는 어딘가에 있다고 생각지 않는 무엇인가를 했습니까? 누군가 내가 무엇을 놓쳤는 지 말해 줄 수 있습니까? :(
애플리케이션의 사용자 유형은 몇 명입니까?이 문제는 다른 사용자에게도 발생합니까? 아니면 그 하나. –