我正在尝试使用Laravel刀片模板中的表单上传图像。但是在提交表单时,在我的日志文件中出现了以下错误。
local.ERROR:ErrorException:复制(F:\ Xampp \ htdocs \ fund \ public / campaigns / small / 91554568481ucgbkygnwrdvx0dpfkvyubi6zepi6bp3jrdouf30.png):无法打开流:F:\ Xampp \ htdocs \ fund中没有这样的文件或目录\ vendor \ laravel \ framework \ src \ Illuminate \ Filesystem \ Filesystem.php:204
html表单
<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>
我正在为此寻找信息,但尚未获得任何解决方案。这是什么问题,如果有任何与文件夹权限有关的问题,那么该如何解决?
有人帮助吗?预先感谢