I'm using fileinput
of this site Bootstrap: fileinput.js v3.1.3
and I need to recover the BLOB
of the image uploaded when submitting the form.
I noticed that when doing the uplod
of some image the tag img
appears and the BLOB
is placed in it. As in the following image:
MyHTMLcodesareasfollows:
<divclass="col-sm-12">
<div class="fileinput fileinput-new" data-provides="fileinput">
<div class="fileinput-preview thumbnail" data-trigger="fileinput"><img class="img-responsive" src="{{$igreja->BLO_IMAGM_IGREJ}}" alt=""></div>
<div>
<span class="btn btn-info btn-file">
<span class="fileinput-new">Selecionar foto</span>
<input type="file" name="...">
</span>
<a href="#" class="btn btn-danger fileinput-exists" data-dismiss="fileinput">Remover</a>
</div>
</div>
</div>
I thought of doing the following, when uploading the file I set in a field with the property hidden the blob of the image up, so I can recover this data in my controller.
For the sake of curiosity I'm using Laravel 5.3
.