A basic file upload component using LWC which will upload file to standard Content Document object. We will be using standard lightning-file-upload to upload file.
lightning-file-upload is a base component that uploads files straight to Salesforce. It needs a record-id, because each uploaded file is linked to that record. The file itself is saved as a ContentDocument and appears in the Files related list of the record. The accept attribute limits the file types, and onuploadfinished runs when the upload is complete.
Points to note
imageSelected never changes, so the disabled attribute has no effect. You can remove it.
@track is not needed for a simple value.
The handler only writes to the console. Users should see a message when the upload ends.
The accepted list contains .jpg and .png. Add .jpeg if you want to allow that extension.