Noi chung là ép download mấy cái file đó ạ
HỏiCode ép download file .txt, .json, .dat, .png, jpg, jpeg
7 bài đăng
06.09.2017 / 22:29
Bài đăng: 1028
Member
Mệt cứ nói, đừng cố....
06.09.2017 / 22:34
Bài đăng: 2643
Trùm!
Vẫn là A N H
PHP
PHP
// File type header('Content-Type: image/png'); // File name header('Content-Disposition: attachment; filename="file_name.png"'); // File output readfile('file.png');
HTML
HTML5
<a href="link_file" download>Download</a> <a href="link_file" download="file_name">Download</a>
Browser Support
- Chrome 14.0
- EDGE 13.0
- Firefox 20.0
- Safari 10.1
- Opera 15.0
Đã chỉnh sửa. MrKen (06.09.2017 / 22:46)
hidden thích điều này
07.09.2017 / 07:01
Bài đăng: 1028
Member
Mệt cứ nói, đừng cố....
PHP
PHP
// File type header('Content-Type: image/png'); // File name header('Content-Disposition: attachment; filename="file_name.png"'); // File output readfile('file.png');HTML
HTML5
<a href="link_file" download>Download</a> <a href="link_file" download="file_name">Download</a>Browser Support
- Chrome 14.0
- EDGE 13.0
- Firefox 20.0
- Safari 10.1
- Opera 15.0
Không hiểu
Người dùng đã xem (57)
nhox49,
phuongk,
khanh2002hn,
nhoc49,
Yaka99,
Zinesking,
adu2002hn,
quality,
DucVuPro,
SangLT,
Poker,
mellody,
Lount,
b0ysh0ckhn,
monaechi,
kimycelove,
popokeen,
Vnhaha,
Hoccode,
locga113z,
Buianhduong,
Hgimmortal,
minhmon2000,
dingyuan,
Tieu.ka,
minhduc,
PMTpro,
VazDN,
MnpNgok,
mcvp9x,
haidk,
hanhphucao,
Minor,
VinaDP,
Jichan,
MrKen,
mad,
thaibinhvip,
kayer,
tnit2510,
KenBii,
Smile,
crazy,
Bkit9x,
hidden,
Ply24,
boyhn,
olachemgio,
jojolonelycat,
vov,
vipnamdan,
Manhlove,
trandat,
NPNpro,
DucPlus,
manhhung,
Wapego.com7,