![]() So, I think the problem has to do with the header() code but i've tried a bunch of things related to that based on various google and other SO suggestions and none work. Header("Content-Length: ".filesize($archive)) Files app icon, tap Browse, tap the location in which the ZIP folder is located (you may have to navigate through a few different folders). Header("Content-Disposition: attachment filename=".basename($archive)) Email Open your email app (e.g., Gmail or Mail), select the email in which the ZIP folder is stored, and scroll down if necessary to view the ZIP folders name. So I'd like my HTML to be this: download zipĪnd my PHP for the /canDownload page: //business logic to determine if user can download The problem is I'd like the link to point to my application such that I could determine whether the user is authorized to access this zip file. If I make the url for a zip file the href of a link and click the link, my zip file gets downloaded and opening it gets the contents as I expect.
0 Comments
Leave a Reply. |