I tried to store file to database: I tried this:
<input type="hidden" name="MAX_FILE_SIZE" value="2000000">
<div class="col-sm-3">
<input name="userfile" type="file" id="userfile" >
</div>
<input type="button" class="btn btn-success col-sm-2 col-sm-offset-1"
style="width: 10%" value="Submit" id=ctl_submit title="Submit">
I get file object by doing this:
$('#userfile')[0].files[0]
but how to process this object in php to store into DB. My DB contains these fields : filename, filecontent, filesize, filetype. Can anyone please tell me?