Jump to content
php.lv forumi

zip downloads uz Mac


Genesis

Recommended Posts

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 by Genesis
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...