【发布时间】:2016-01-22 07:20:59
【问题描述】:
我有以下代码:
$thumb = file_get_contents( $thumb );
$thumb = str_replace( '#00FF00', '#' . $color, $thumb );
header( 'Pragma: public' );
header( 'Expires: 0' );
header( 'Cache-Control: must-revalidate, post-check=0, pre-check=0' );
header( 'Cache-Control: private', false );
header( 'Content-Type: image/svg+xml' );
header( 'Content-Disposition: attachment; filename="thumb.svg"' );
header( 'Content-Transfer-Encoding: binary' );
echo $thumb;
但是当文件被下载时,mac上的权限是这样的:我读&写,员工只有读,每个人都没有权限......是否可以更改它以使下载的文件具有这样的权限:我读&写,员工读和写,每个人都读和写?
【问题讨论】:
-
您无法从远程网站控制本地文件的文件权限。那将是超级超级不安全的。浏览器发送文件,你的系统决定如何存储它。
标签: php macos download attachment finder