我試着上傳與下面的代碼的文件在Ubuntu文件上傳權限Laravel在Windows 10
$file = $request->file('file_upload');
$destination = app_path() . '/myStorage/';
$fileName = $sampleName . '-' . date('Y-m-d-H:i:s') . '.' . $file->getClientOriginalExtension();
$file->move($destination, $fileName);
它工作得很好。現在我試圖在Windows操作系統中運行相同的代碼,並且出現以下錯誤
無法將文件「C:\ wamp64 \ tmp \ php6570.tmp」移動到「C:\ wamp64 \ www \ gittest \ gittest \ IBA \ app \ myStorage \ Test-2016-02-17-10:43:27.xlsx「()
代碼中是否存在任何問題或者是否存在權限問題? 請幫幫我。
是否所有的文件夾在 'C:\ wamp64 \ WWW \ gittest \ gittest \ IBA \程序\ myStorage \' 存在嗎? –
雅所有的文件夾存在。 @Jim Wright –