Genesis Posted February 12, 2010 Report Share Posted February 12, 2010 (edited) Sveiki, gribēju uzzināt vai kāds ir saskāries ar tādu īpatnību. Tātad - ir koda galbals kurš piedāvā novilkt zipu: $file='Gallerys/'.$gallery.'/'.$gallery_name.'. header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.basename($file)); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Content-Length: ' . filesize($file)); ob_clean(); flush(); readfile($file); $url=curPageURL(); redirect_to($url); Viss strādā jauki un labi uz Win (FF,IE,Safari,Opera), Ubuntu (ff), bet uz Mac FF un Safari ir tā, ka nevis uzmetas jauns mazais ligs kurā peidāvā novilkt , vai arī saglabāt failu, bet gan bez piedāvāšanas tas zips tiek novilkts un atvērts prewiew logā (jo iekšā ir bildes). Ja ir kāds saskāries, tad kā Jūs to atrisinājāt? Man pagaidām nav ideju.. :) Edited February 12, 2010 by Genesis Quote Link to comment Share on other sites More sharing options...
Klez Posted February 12, 2010 Report Share Posted February 12, 2010 tā gadījumā nav mac FF vai safarī fīča ? vai arī Mac fīča ... paskaties tam mac browsera setingos pie failu tipiem, ko vinsh dara ar zip failiem ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.