I have an html form. Inside of that form there is an input with type="file"
and accept="image/*"
. When the form gets submitted the value of the input is saved to a php variable.
How can I get blob of the uploaded image using php? I only need to get the blob of the image so I can store it to a database. I can do everything else necessary for uploading the file.
I have looked at Quick php file upload guide and none of the answers there helped me.