HTTP is just a protocol. Stateful or stateless is orthogonal. HTTP is both and neither.
Also, HTTP has no concept of files (in general), only resources. Files can be resources! Resources are not files.