Commit graph

280 commits

Author SHA1 Message Date
Kijin Sung
2b67798cab Add option to adjust quality of JPG output 2019-08-01 03:49:16 +09:00
Kijin Sung
bf93afd7e5 Support converting BMP and WEBP images to JPG 2019-08-01 03:13:58 +09:00
Kijin Sung
62eb21abbb Separate image check into its own method and clean up 2019-08-01 02:21:04 +09:00
Kijin Sung
1e5eedf3e0 Implement automatically resizing images that are too large 2019-08-01 02:13:25 +09:00
Kijin Sung
c95f84adb8 Implement maximum image size constraint 2019-08-01 01:56:51 +09:00
Kijin Sung
31b0bb4158 Fix #1180 remove session dependency from file download operation
파일 다운로드시 사용하는 key의 검증 과정에 세션을 사용하지 않도록 변경함.
전자서명을 사용하여 동일한 IP 주소에서 1시간 동안 유효한 key를 생성함.
2019-07-31 19:25:56 +09:00
Kijin Sung
188c4aa34a Fix #1129 display total size when selecting files for deletion 2019-07-30 21:21:05 +09:00
Kijin Sung
3ce11f6432 Fix #1176 progress bar closing too early when uploading multiple files 2019-05-29 08:38:12 +09:00
Kijin Sung
70108f858d XEVE-19-001, XEVE-19-003, XEVE-19-006
xpressengine/xe-core@18ec8078eb
2019-05-04 17:36:41 +09:00
Kijin Sung
930ebc97b7 Use proper file storage path for skin uploads 2018-12-18 16:03:27 +09:00
Kijin Sung
f80ea85b6f Add file.folder_structure setting to simplify file storage hierarchy 2018-10-18 16:06:53 +09:00
Kijin Sung
60d390f52e Initial mitigations for #1088 #1089 2018-09-17 00:48:47 +09:00
Kijin Sung
d8a0773b97 Replace $this->stop() with proper exceptions 2018-09-06 00:19:47 +09:00
Kijin Sung
ad00ac800b Update document, comment, file modules to throw exceptions 2018-09-05 23:55:50 +09:00
Kijin Sung
5fa2dec9db Also detect force_download=Y option in procFileDownload 2018-03-10 00:30:03 +09:00
Kijin Sung
7854d64641 Add URL parameter force_download=Y to force download images 2018-03-07 12:22:13 +09:00
Kijin Sung
2366d61ea4 Allow some file types to be downloaded inline
이미지, 오디오, 비디오, PDF 등 일부 파일을 다운로드하면
다운로드 창을 띄우지 않고 현재 창에 바로 표시할 수 있는 옵션 추가
단, text/html은 보안상 허용하지 않음
2018-03-07 11:39:40 +09:00
conory
54401ea28f copyDocumentModule(), deleteModuleDocument() 정리, 성능 개선 2018-01-29 00:57:35 +09:00
conory
3d2ade4aa1 문서 이동 / 첨부 파일 삭제 기능 개선 2018-01-24 21:23:00 +09:00
Kijin Sung
84e5542d77 Remove unnecessary use of BaseObject
- 트리거 등 반환값이 필요하지 않은 곳에서 new BaseObject()를 반환하는 것 삭제
- 모듈 설치, 업데이트 후 무의미한 new BaseObject()를 반환하는 것 삭제
- 사용자에게 에러 메시지를 돌려주는 용도로 new BaseObject(-1, '에러메시지')를
  사용하는 경우는 대부분 $this->setError()로 변경함. 언어 변환과 sprintf()
  처리까지 한 번에 이루어지므로 이쪽이 더 편리함.
2017-12-01 00:54:51 +09:00
BJRambo
f3f40f6859 php7.2호환을 위해 변경한 클래스 Object 를 BaseObject으로 변경 2017-11-28 20:01:28 +09:00
Kijin Sung
1f9f449fb0 Stop treating .swf as directly downloadable file
플래시 첨부파일을 본문에 직접 삽입하는 방식에서 다운로드만 가능한 방식에서 변경
file, importer, integration_search 등 모든 모듈에 일관성있게 적용

xpressengine/xe-core#2149
2017-10-12 00:29:22 +09:00
howtoxe
7b763f0aec 코딩컨벤션 수정 2017-05-30 13:39:45 +09:00
howtoxe
8648dd5aa5 수정
간편하게 수정
2017-05-30 13:39:45 +09:00
howtoxe
6d182b6d11 커버이미지 선택 취소 기능
CK에디터 파일업로드의 커버이미지 선택을 취소할 수 있도록 하는 기능
2017-05-30 13:39:45 +09:00
Kijin Sung
b11f233b3a Fix arbitrary file deletion via procFileIframeUpload()
@conory
2017-03-08 17:21:00 +09:00
Kijin Sung
910610e62d Fix direct file access via procFileGetList
@conory
2017-03-08 17:14:23 +09:00
Kijin Sung
0a5042ec6e Fix potential fatal error when migrating from previous session 2017-02-11 14:21:21 +09:00
Kijin Sung
e1ffe39a2e Use Rhymix Framework to decide whether a file can be directly downloaded
xpressengine/xe-core#1997
2017-02-06 15:58:10 +09:00
Kijin Sung
607e9357c2 Merge pull request #686 from kijin/pr/delete-empty-folders
빈 폴더 자동 삭제 및 일괄 삭제
2017-02-05 22:57:02 +09:00
Kijin Sung
aeb7a97864 Add file_info to file.insertFile/before trigger 2017-02-02 21:31:40 +09:00
Kijin Sung
3f0cf4f9b7 Clear empty directories when deleting files or thumbnails 2017-01-26 18:09:56 +09:00
Kijin Sung
f692d223f2 Relax referer and user-agent checks in file download #680 2017-01-17 23:52:54 +09:00
Kijin Sung
dce0b2f2b3 Fix relative path 2016-12-18 10:54:06 +09:00
Kijin Sung
9d7b731b4c Delete file before calling 'after' trigger 2016-12-17 22:50:14 +09:00
Kijin Sung
d69007e200 Improve debugging 2016-12-17 21:54:00 +09:00
Kijin Sung
13b14dc7f5 Improve debugging and error handling for chunked file uploads 2016-12-17 21:37:30 +09:00
Kijin Sung
e2895912e5 Implement chunked file uploads on the server side 2016-12-17 20:50:43 +09:00
Kijin Sung
c3fe8d265b Move RFC5987 encoding function to UA class 2016-06-25 21:22:32 +09:00
Kijin Sung
eb895f76cd Do not rollback if an 'after' trigger returns error 2016-05-14 20:24:45 +09:00
Kijin Sung
45b2910cee Fix #397 error while uploading file to an existing directory 2016-03-21 16:18:31 +09:00
conory
dc79c3ea9d 좀 더 정확하게 파일 경로 지정 2016-03-18 20:37:16 +09:00
conory
7125cf0e12 본문 삽입시 이미지 URL을 상대경로로 변경 2016-03-18 20:14:52 +09:00
Kijin Sung
cb229c2d66 Clean up namespaces 2016-03-14 21:04:27 +09:00
Kijin Sung
9d6284faad Update all references to old Password class 2016-03-13 23:39:31 +09:00
Kijin Sung
5d7853645a Remove all calls to checkUploadedFile() 2016-03-12 21:03:26 +09:00
Kijin Sung
6d13142f30 Use FilenameFilter in file module 2016-03-12 17:44:50 +09:00
Kijin Sung
fa32b47539 Merge #1758 이미지 파일 업로드시 본문 자동삽입되도록 수정 by YJSoft
* pr/1758:
  source_filename으로 확장자 체크하도록 수정
  이미지 파일 업로드시 본문 자동삽입되도록 수정
2015-10-08 15:09:02 +09:00
Kijin Sung
5e6878d0c7 Merge #1639 파일 다운로드 개선 by kijin
* pr/1639:
  Create and verify file download keys without adding too much data to the session
  Improve filename encoding for modern browsers that support RFC 5987
  Implement 304 Not Modified and 206 Partial Content for file downloads
  Thoroughly comment existing behavior
2015-10-08 15:03:24 +09:00
YJSoft
3f038dd830 procFileImageResize 함수의 $output 변수를 stdClass로 초기화 2015-09-21 14:59:27 +09:00