Hi,
I created an uploaded facility. Kindly see the the view and controller below :
VIEW
<form action="{{ URL::route('postUploadPdf') }}" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="the-pdf" id="the-pdf"><br> {{ Form::token() }} <input type="submit" name="submit" value="Submit"> </form>CONTROLLER
Input::file('the-pdf')->move('../uploads');
How can I move it to that folder with the same copy of the original pdf file, not a *.tmp file.
$filename = 'myfile.pdf';
Input::file('the-pdf')->move('../uploads', $filename);
wow.. Thanks dude mgsmus for helping me :D it works!! :D
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community