I am trying to upload an image using form in my Laravel blade template. But got an error like below in my logfile wile submit the form.
local.ERROR: ErrorException: copy(F:\Xampp\htdocs\fund\public/campaigns/small/91554568481ucgbkygnwrdvx0dpfkvyubi6zepi6bp3jrdouf30.png): failed to open stream: No such file or directory in F:\Xampp\htdocs\fund\vendor\laravel\framework\src\Illuminate\Filesystem\Filesystem.php:204
html form
<form method="POST" action="{{ url('create/campaign') }}" enctype="multipart/form-data" id="formUpload">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="filer-input-dragDrop position-relative" id="draggable">
<input type="file" accept="image/*" name="photo" id="filePhoto">
<!-- previewPhoto -->
<div class="previewPhoto">
<div class="btn btn-danger btn-sm btn-remove-photo" id="removePhoto">
<i class="fa fa-trash myicon-right"></i> {{trans('misc.delete')}}
</div>
</div><!-- previewPhoto -->
<div class="filer-input-inner">
<div class="filer-input-icon">
<i class="fa fa-cloud-upload"></i>
</div>
<div class="filer-input-text">
<h3 class="margin-bottom-10">{{ trans('misc.click_select_image') }}</h3>
<h3>{{ trans('misc.max_size') }}: {{App\Helper::formatBytes($settings->file_size_allowed * 1024) .' - '.$settings->min_width_height_image}} </h3>
</div>
</div>
</div>
I am googling for that but not getting any solution yet. What's the problem and if there is any folder permission related issue then how to solve that ?
Anybody Help please ? Thanks in advance