As part of my program, I provide users the ability to upload a zip file. From this uploaded file, it is necessary for me to extract the content from the comment field of the zip file, which serves as metadata specific to each zip file.
While searching online, I found that most third-party tools are focused on creating, zipping, unzipping, and reading the entire contents of the zip file. However, my requirement is to only access and read the metadata stored in the comment section of the zip file.
Despite looking for a suitable third-party solution, I was unable to find one that specifically caters to extracting the comment field from a zip file. The object received from the input tag is 'FileList', from which the first file (an object of type 'File') is extracted. Unfortunately, neither of these objects provides direct access to the comment field, which is understandable given that not all files have this particular field.