Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- linux
- ruby
- staging area
- dockerfile
- working directory
- laravel
- centOS7
- controller
- codeigniter4
- javascript
- Wordpress
- docker
- pagination
- vue
- Selenium
- imagemagick
- Ruby On Rails
- php
- props
- MySQL
- SQL
- NGINX
- ec2
- cron
- react
- Python
- Git
- AWS
- docker-compose
- ubuntu
Archives
- Today
- Total
목록fputs (1)
내가 한 노력들
[ PHP ] Project 디렉토리에 있는 파일을 Web에서 Download
project 디렉토리에 있는 csv 파일을 Web상에서 유저가 다운로드할 수 있도록 구현했습니다. Content-Disposition 응답 Body를 브라우저가 어떻게 표시해야할지 알려준다. inline 옵션 - 파일을 웹페이지에 표시한다. 웹페이지 표시가 지원되지 않는 파일은 다운로드 예) Content-Disposition: inline attachment 옵션 - 파일을 다운로드하고, filename 옵션으로 파일명까지 지정해줄 수 있다. 예) Content-Disposition: attachment; filename='filename.csv' Content-Length HTTP 요청에서 Content-Length는 선택사항입니다. GET 또는 DELETE의 경우 길이가 0이어야 합니다. POST..
IT 공부/PHP
2022. 2. 15. 19:17