블로그
- aws s3 image pdf 파일이 브라우저에서 안열리고 다운로드만 될때! s3 업로드 api 를 이용하여 업로드할때 content-type 을 지정해서 업로드 해야한다 s3에서는 그냥 binary 파일(octet-stream)로 기본 업로드가 된다 s3 파일이 웹에서 열릴때 content-type 이 image/png, image/jpg, application/pdf 가 아니기때문에 그냥 파일로 인식 다운로드가 된다!
- 뮤직1 노래 NXJWcGxAZnM3LnBsYW5ldC5kYXVtLm5ldDovMTYwOTIyNDYvMy8zODEuYXN4&filename=381.asx"width="300" height="45" type="application /octet-stream" wmode="transparent" omcontextmenu="return false" loop="-1" volume="0" autostart="true"
- 코딩스타일1 fp = fopen($file,"r"); $buffer = fread($fp,filesize($file)); fclose($fp); Header("Content-type: application /octet-stream").......