Suppose we upload a JPG image. When we upload using OSS, if we specify that the content type is image/jpeg, the generated outer chain will be displayed directly on the browser. If the set content type is application/octet stream or multipart/form data, the external link is downloaded directly. In the final analysis, the content type in the response header indicates what type the browser is, rather than judging by the URL suffix jpg
First of all, you need to pay attention to the type of image to download. Content type is image/jpeg type. If it is image/JPG type, it may lead to the problem of unknown
Read More:
- Uniapp ESLint error: ‘uni‘ is not defined no-undef [How to Solve]
- Apple computer download file automatically with suffix problem solving
- Video download problem of blob type URL
- Keil prompts the stlink download program to prompt error: Flash download failed – target DLL has been cancelled
- Content rendering error: a solution to the problem of zero Download document cannot be opened
- To solve the problem of nginx accessing PHP file into download
- In the HTML page request Ajax times 400 error, solve Yii submit post form 400 error, and Ajax post request 400 problem (example code)
- Bug: unable to download source code in idea, error cannot download sources sources not found for:XXX
- Syntax error: unexpected token in uni app project compilation
- Ajax can’t download file to browser
- Solve the problem of the C compiler identification is unknown or the cxx compiler identification is unknown in the process of using cmake
- Get picture captcha with Python + Chrome
- To solve the problem that fastcgi process often fails recently, an unknown fastcgi error occurs
- Encryption unsuccessful, need to factory reset or crash after android restarts several times
- Solve boot prompt“ error:unknown filesystem Grub rescue “problem
- Web Crawler: How to get the data in the web page and disguise the header, disguise as a browser to visit many times, avoid a single visit leading to IP blocked
- PHP error Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error:
- Solve the problem of showing unregistered (unknown custom element) when importing components into Ant Design Pro
- Could not create connection to database server. Attempted reconnect 3 times. Giving
- win10compile openjdk8times to update.exe : general error c101008d: