I haven't done lot of research on HTTPS yet so I have a question about it.
Is data integrity preserved using HTTPS or only confidentiality? For example on file upload, does HTTPS guarantee that no one can change the data on upload, or it only guarantees that no one can read it?
Short answer: Yes
Requirements:
Example: TLS_RSA_WITH_AES_128_CBC_SHA256
Example: TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
Regarding the second example, it is important to note that SHA256 is NOT the HMAC algorithm but it is used as PRF (check this answer for more details).