Jump to content
精冰论坛

IPB 3 附件无法下载问题的解决方法


MOPy

Recommended Posts

修改文件: IPB3\admin\applications\core\sources\classes\attach\class_attach.php

找到

header( "Content-Disposition: inline; filename=\"{$attach['attach_file']}\"" );



修改成


if ( preg_match("/MSIE/", $_SERVER["HTTP_USER_AGENT"]) ){

    header( "Content-Disposition: attachment; filename=\"" . urlencode($attach['attach_file']) . "\"" );

}else{

    header( "Content-Disposition: inline; filename=\"" . $attach['attach_file'] . "\"" );

}

Link to comment
分享至其他网站

Join the conversation

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

Guest
回复此主题...

×   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...
  • 最近游览

    • No registered users viewing this page.
  • {advertisement="custom-sidebar"}

×
×
  • Create New...