Information générale
Catégorie:
Fonctions Windows API
Versions des environnements
Network:
Windows 2003 Server
Getting the ZIP file back isn't the problem... Its when I UNZIP the file on the local file server that it appears to have the credentials from the other server and won't allow non-admin users to open/access... Its like the ZIP file stores the rights of the files and when unzipping, tries to keep those same rights/restrictions on the new machine.
>Hi Don,
>
>I apologize for not answering directly to your question.
>
>Why don't you shoot ZIP file back to a client through HTTP by setting Content-Type and Content-Disposition headers?
>
>- client requests data by clicking on a link
>- your server prepares temp zip file
>- then reads it into a string variable
>- sends back this variable as a new page
>
>An example of ASP code:
>Response.AddHeader "ContentType", "application/zip"
>Response.AddHeader "Content-Disposition", "attachment; filename=somename.zip"
>Response.Write(<...file-to-string...>)
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement