Support the ongoing development of Laravel.io →
Requests Input
Last updated 2 years ago.
0

if i'm not mistaken, you can write the file anywhere that you have write access to.

http://laravel.com/docs/requests#files

http://laravel.com/docs/responses#special-responses

$destinationPath = app_path() . "/mystorage/";
Input::file('document')->move($destinationPath, "foobar.pdf");

//download
$file= app_path() . "/mystorage/foobar.pdf";
return Response::download($file);
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

closca closca Joined 9 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.