0

I have a typical file upload element on a webpage:

<input type="file" id="zipFileUploader">

When a user selects a file, I want to do some preprocessing with the file, so I use this jQuery:

$("#zipfileUploader").change(function()
{
    var file = $(this).val();
});

But that only gives me the name of the file, not the actual content or bytes. How can this be achieved?

What I would like to do is determine the names of the files in the zip file (let's assume it has no directories) so I can populate a select with those values. After the user has selected the name of a file inside the zip, the entire form can be submitted and the server knows which filz inside the zip it has to look for.

user1884155
  • 3,616
  • 4
  • 55
  • 108

0 Answers0