I'm working on an application where users can upload zip files which are always password protected. I have a file-uploader, and a simple text-input for that password.
Currently, the password is only checked in the BE after the file upload (which might take several minutes, since the files can be several GB) and when the password is incorrect, the user will get an application message (not really important how that works) saying 'upload failed, provided wrong password' and they have to start the entire process from scratch.
I want to make it so that the upload process won't even start when the provided password is incorrect. So; how do i only verify the password of a zip file in Angular(9) without extracting that entire file?