# download files automatically to avoid apple computer with suffix
discovered an interesting document, download a plain text file will not win with suffix, but MAC download will take a suffix, and asked for direct download, file download time cannot be browser opens, as shown in figure:
in the figure, found that under the MAC apple is, according to official provided in the download file but the download your configuration file is plain text document.
default_type application/json;
;
add_header content-disposition attachment
add_header content-disposition attachment
add_header content-disposition attachment
add_header content-disposition attachment
add_header content-disposition attachment
add_header content-disposition attachment
add_header Content-Type application/octet-stream;
and default_type is not configured. This allows Mac to download files directly without suffixes.
Read More:
- can’t set headers after they are sent
- Using uniapp uni.downloadFile Download picture to photo album times error unknown problem
- Error: ENOENT: no such file or directory, open ‘E:\Program Files\nodejs\tmp\upload_38b32f25bc984333c
- Tomcat web compression configuration
- The problem that headers [‘content-type ‘] does not work is set in the Axios get method request interface
- Error: required request body is missing, @ requestbody annotation usage
- PHP big file upload problem (500m or above)
- The use of BibTex
- A method of collecting JS dynamic content by PHP
- Address of campus mailbox POP3 of Nankai University
- 13.2 spring boot start error: whitelabel error page
- LoadRunner error — memory violation: exception access_ Solution
- Python implements inserting content in the specified position of text
- React Native: TypeError: Network request failed
- How to use JavaScript in HTML
- After eclipse eclipse eclipse imports the correct project, an error is reported in XML and other files
- Encapsulation of Ajax JSON / fromdata request in native JS
- Win10 can’t drag files to open directly
- How to convert audio to subtitle (text) with Python?
- CFNetwork internal error (0xc01a:/BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork_Sim/CFNet