Upload File text/plain problem!!!
I can upload image file but I can't upload text/plain file (.txt)
How can i fix it?
Don't have any error but file not move to specific folder.
The process is identical, but cannot advise without code
@Snapey
My blade.php file
<form method="post" enctype="multipart/form-data" class="form-horizontal" action="{{route('addorder')}}">
{{ csrf_field() }}
<input type="file" id="oderdata" name="oderdata" accept="text/plain" />
</form>
My Controller
$oderdata = $request->file('oderdata');
$input['oderdata'] = time().'.'.$orders.'.'.$oderdata->getClientOriginalName();
$destinationPath = public_path('/assets/shared/order');
$oderdata->move($destinationPath, $input['oderdata']);
I can fixed it
because some valiable in path not have value
Please or to participate in this conversation.