6ber6ou's avatar

FileNotFoundException in Filesystem.php...

Hi all. I uploaded a file and now I want to get the content of this file :

use File;
$content = File::get( $request->input( 'file' ) );

But I have this error :

FileNotFoundException in Filesystem.php line 40:
File does not exist at path
0 likes
2 replies
6ber6ou's avatar

I made :

use File;
$file = Input::file( 'file' );
$content = File::get( $file );

and it's work :)

kadari's avatar

Try $request->file('uploaded_file_name') instead of File::get( $request->input( 'file' ) )

Please or to participate in this conversation.