mercredi 17 février 2016

File upload permissions Laravel in Windows 10

I tried uploading a file with the following code in ubuntu

$file = $request->file('file_upload');
$destination = app_path() . '/myStorage/';
$fileName = $sampleName . '-' . date('Y-m-d-H:i:s') . '.' . $file->getClientOriginalExtension();
$file->move($destination, $fileName);

and it worked fine. Now i am trying to run the same code in Windows OS and i am getting the following error

Could not move the file "C:\wamp64\tmp\php6570.tmp" to "C:\wamp64\www\gittest\gittest\IBA\app\myStorage\Test-2016-02-17-10:43:27.xlsx" ()

Is there any problem in the code or is there a permission issue? Please help me.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire