✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Unzip a file with the dcc.Upload component

I need some advice on getting the byte array that comes out of the Upload Component unzipped. I know how to do the whole process with zipfile and a file path, but Upload does not provide the path with the filename. The zip file is password protected too, in case that makes a difference.

Thanks for any help!

UPDATE I have resorted to writing the file back out to a temp folder that gets wiped out when everything is done. It is not a super elegant solution and I am sure there is a way to decompress the byte array but I made it half-way through the zipfile source code and then decided to try the brute-force approach. (life as a non-co-sci I suppose…)

Luckily for me, the zip files are not large so reading, writing, and reading them again is not a problem.