eligrey / FileSaver.js

An HTML5 saveAs() FileSaver implementation
https://eligrey.com/blog/saving-generated-files-on-the-client-side/
Other
21.58k stars 4.38k forks source link

Apple wallet pkpasses bundle cannot be saved with correct extension #761

Open Mumcio opened 2 years ago

Mumcio commented 2 years ago

Hey, following Apple documentation to generate a bundle of ticket passes for apple wallet, I need to create a zip file and rename it to .pkpasses. I wanted to mimeType with application/vnd.apple.pkpass but FileSaver still add .zip extension to the file

Do you handle pkpasses ?

Mumcio commented 2 years ago

Resolved - I had to use mimeType with "application/octet-stream" https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types