Setting content-type of response for download link
Hey I am new to Box!
I upload a file to a folder on Box and then share it with a user using the "direct link". I want user's client to download and install the file (it is an Apple Wallet PassBook file i.k.a. PKPass).
Download works fine but the content-type on response is set to generic "application/octet-stream" and iOS does not recognize it as a Pass.
How can I influence this behavior? I want to be able to set the content-type of the response to "application/vnd.apple.pkpass"
Thanks!
-
Hi ,
Welcome to the Box Community and thanks for the detailed question!Do you know if you are able to download the PKPass file from a different source (i.e. email client), will your device recognize the file and open it the way you would like it to?
- Have you experienced this issue with any other method of downloading this filetype on your mobile device?
Reading up a bit on this filetype, I see it is a type of .zip file. I'm wondering if this is an inherent issue with the file type where you will be unable to open it as a Pass if it didn't originate from Apple Wallet PassBook.
- How is this filetype typically generated?
- Do you receive it from within the Apple Wallet PassBook app?
If this does not help identify the issue, I'd recommend opening a case directly with our support team so that they can provide you more personalized support. In the ticket, please provide all of the information from this thread. Use this link to submit a ticket.
Kind Regards,
James
Be sure to look at the Community Guidelines, and check out our Product News, Training Guides, and Help Articles. For tips on how to getting around, see this video!
-
Hi James,
The file opens fine (associates with correct app) on iOS when attached to email. The download also works from AWS S3 after setting the proper content-type (i.e. application/vnd.apple.pkpass)
The file is an apple standard signed package (using zip as underlying technology). The pass is being generated using pkpass SDKs (tried ObjectiveC/swift and Java with same results)
Thanks,
Ali
Post is closed for comments.
Comments
3 comments