I am getting the following validation message when uploading some files (not all) and on others it works as expected. It works on my local machine but not on the server,
The code is as follows: Form:
<form method="post" class='nice' enctype='multipart/form-data'>
<h1>New Bond</h1><br/>
@foreach($errors->all() as $error)
<p>{{ $error }}</p>
@endforeach
@if(Auth::user()->role == "Administrator")
Load for Agent: <br/>
<select name="agent" class="input-text medium placeholder">
<option value="">Select Agent ...</option>
@foreach($agents as $agent)
<option value="{{$agent->id}}">{{$agent->name}}</option>
@endforeach
</select><br/><br/>
@endif
<input class="input-text medium placeholder" type="text" name="name" placeholder="Name" value = "{{Input::old('name')}}"/><br/><br/>
<input class="input-text medium placeholder" type="text" name="surname" placeholder="Surname" value = "{{Input::old('surname')}}"/><br/><br/>
<input class="input-text medium placeholder" type="text" name="id" placeholder="RSA ID" value = "{{Input::old('id')}}"/><br/><br/>
<input class="input-text medium placeholder" type="text" name="email" placeholder="Email" value = "{{Input::old('email')}}"/><br/><br/>
<input class="input-text medium placeholder" type="text" name="cell" placeholder="cell" /><br/><br/>
Documentation (PDF or Tiff)<br/>
<input type="file" name="docs" placeholder="Documentation" /><br/><br/>
<input type="submit" name = "submit" value="Submit"/><br/
</form>
Rules:
$rules=array(
'name' => 'Required',
'surname' => 'Required',
'id' => 'Required',
'email' => 'Required',
'cell' => 'Required',
'docs' => 'max:2000|mimes:pdf,tiff|Required',
);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community