Commit graph

161 commits

Author SHA1 Message Date
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
YJSoft
0a82801a5b 이미지 파일 업로드시 본문 자동삽입되도록 수정 2015-09-21 14:44:57 +09:00
bnu
633da1b13c #1713 첨부한 파일명을 이용해 임의 코드를 실행할 수 있는 문제 고침 2015-08-18 14:07:33 +09:00
Kijin Sung
dda0ad41f7 Create and verify file download keys without adding too much data to the session 2015-07-14 21:20:49 +09:00
Kijin Sung
0dc114b5b2 Improve filename encoding for modern browsers that support RFC 5987 2015-07-14 21:07:11 +09:00
Kijin Sung
bd922c8aae Implement 304 Not Modified and 206 Partial Content for file downloads 2015-07-14 16:38:35 +09:00
Kijin Sung
48f65c7560 Thoroughly comment existing behavior 2015-07-14 15:17:36 +09:00
bnu
7dd5d48b5b fix #1589 글/댓글 작성과 동시에 커버이미지 선택이 동작하지 않는 문제 수정
- 파일의 권한 체크
2015-07-08 02:15:47 +09:00
bnu
4faa291880 #1331 커버 이미지를 선택할 수 있는 기능 추가
- files 테이블에 cover_image 컬럼 추가
- 썸네일 생성 로직에 cover_image 값을 참조하여 이미지 선택 사용
- 파일 업로드 기능에 UI 추가
2015-07-07 17:39:11 +09:00
bnu
8adc874707 파일이 업로드되지 않을 수 있는 문제 수정 2015-05-19 14:23:00 +09:00
Kijin Sung
6e363f41fc 랜덤 파일명 및 sid를 생성할 때 Password 클래스의 난수 생성기를 활용하도록 변경 2015-03-06 15:19:00 +09:00
bnu
d2d092a7eb fix 2015-02-27 14:46:46 +09:00
bnu
052262c196 #1086 업로드 경로 설정 등 문제 수정 2015-02-27 12:40:01 +09:00
bnu
8731b3cd8a #1086 CKEditor 스킨에 파일 업로드 추가 2015-02-26 18:07:10 +09:00
akasima
bd917c3d01 #1176 파일 첨부 대소문자 구분 문제 해결 2015-01-13 11:16:58 +09:00
bnu
182572ce49 Merge pull request #1132 from sejin7940/document_delete
게시글을 삭제 시 해당 글에 첨부된 첨부파일이 삭제되지 않는 문제 고침
2015-01-05 13:47:33 +09:00
sejin7940
496d3c9a5b 게시글을 삭제하면 해당 글 내부에 첨부된 첨부파일이 서버에서 사라지지 않는 버그
게시글을 삭제하면 해당 글 내부에 첨부된 첨부파일이 서버에서 사라지지 않는 버그가 있다 
원인은 실제 파일삭제하는 함수에서, files DB 의 정보를 조회해서 주소를 찾아서 삭제를 하는데.. 
글 삭제할때 deleteFiles 함수에서  DB 를 먼저 삭제해버리고 파일을 삭제하려해서 문제가 생긴다.
2015-01-05 02:42:10 +09:00
bnu
21961fb3e9 #1055 게시물 이동 시 첨부파일의 수를 갱신하는 동작을 간소화 하도록 개선 2014-12-29 17:15:30 +09:00
bnu
c9961fa926 fix #1104 허용하지 않은 확장자의 파일을 업로드할 수 있는 문제 고침
- 보고자 : 국제정보보안교육선터
2014-12-22 15:33:33 +09:00
akasima
ec71794b5c #18 if deleteFiles() method called then run 'file.delete' trigger 2014-08-22 15:33:36 +09:00