BLOB is a "binary large object": a representation for some chunk of bits. Often a BLOB comes from an image, video, or audio, but might be some proprietary custom represenation.
The database can store such things, but they are annoying to work with.
Yes, BLOBS can appear in other situations. For example, there's a Blob API in JavaScript in the browser. Streaming applications often work with BLOBs.
ENCTYPE is the encoding type, which is a way of serializing some data as text.
For HTML forms, there are really only two choices:
application/x-www-form-urlencoded, which is the default and looks
just like a query string: x=3&y=4
multipart/form-data which serializes all the files, kinda like TAR does.
We'll go over a complete, working example!
and also:
Can you talk a bit more about how Flask checks the actual file type or does it just trust the filename extension?
and also
if a file name has relative path sequences, does that get cleaned or do we need to implement code to do it manually?
Great questions! Flask mostly leaves this up to you.
You inspired me to add a short appendix to the reading on forms