You see, I have this form, which is used to request a photo:
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header"><h1>Subir nueva imagen</h1></div>
<div class="card-body">
<form method="POST" action="subir_foto" enctype="multipart/form-data">
@csrf
<div class="form-group row">
<label for="foto" class="col-md-4 col-form-label text-md-right">Foto</label>
<div class="col-md-7">
<input id="foto" type="file" class="form-control{{ $errors->has('foto') ? ' is-invalid' : '' }}" name="foto" value="{{ old('foto') }}" />
@if ($errors->has('foto'))
<span class="invalid-feedback">
<strong>{{ $errors->first('foto') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group row">
<label for="categoria_id" class="col-md-4 col-form-label text-md-right">Categoría de la foto</label>
<div class="col-sm-6">
<select name="categoria_id" class="form-control">
@foreach($categorias as $categoria)
<option value="{{ $categoria->id }}" {{old('categoria_id')==$categoria->id ? 'selected' : ''}}>{{$categoria->nombre}}</option>
@endforeach
</select>
</div>
</div>
<div class="form-group row">
<label for="nombre" class="col-md-4 col-form-label text-md-right">Nombre</label>
<div class="col-md-6">
<input id="nombre" type="text" class="form-control{{ $errors->has('nombre') ? ' is-invalid' : '' }}" name="nombre" value="{{ old('nombre') }}" placeholder="Explica donde la sacaste o en que consiste" required autofocus>
@if ($errors->has('nombre'))
<span class="invalid-feedback">
<strong>{{ $errors->first('nombre') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group row">
<label for="fecha" class="col-md-4 col-form-label text-md-right">Fecha en la que se tomó la foto</label>
<div class="col-md-6">
<input id="fecha" type="date" class="form-control{{ $errors->has('fecha') ? ' is-invalid' : '' }}" name="fecha" value="{{ old('fecha') }}" required autofocus>
@if ($errors->has('fecha'))
<span class="invalid-feedback">
<strong>{{ $errors->first('fecha') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group row mb-0">
<div class="col-md-6 offset-md-4">
<button type="submit" class="btn btn-primary">
Subir Foto
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection
If this form is ok, but I would like to add an improvement.
By clicking on the Examinar...
button, it takes me to the "Images" folder:
But where I want it to go is to a folder inside the code, called public / file, where I'll already have some images ready:
How do I achieve that when I press the button, the window of choosing a photo opens in the place I want?