Commit graph

103 commits

Author SHA1 Message Date
Kijin Sung
b00f8b63d1 Remove unnecessary arguments and deprecated function calls
- Originally committed on April 3, 2022
2022-12-26 16:24:27 +09:00
Kijin Sung
17279c264b Add support for short download URLs #1875 #1922
- Originally committed on April 3, 2022
- Thanks to @misol @conory
- getDownloadUrl()에서 기존 메소드 형태 최대한 그대로 유지하는 방향으로 작업
  (단, source_filename 파라미터를 전달하지 않으면 긴주소로 강제됨)
- getDirectFileUrl()의 불필요하게 복잡한 코드 정리
- getFileList()에서 이미지가 아닌 파일도 절대경로를 반환하도록 수정
- procFileDownload, procFileOutput에서 URL에 포함된 파일명을 검증하도록 하여
  동일한 첨부파일에서 파일명 부분만 변형한 링크를 무한 생성할 수 없도록 함
- 짧은주소 미사용시 불필요한 module_srl 파라미터 제거
2022-12-26 16:23:19 +09:00
Kijin Sung
00246165b3 Merge branch 'develop' into next 2020-06-17 21:09:41 +09:00
BJRambo
ea381a46c6 import a file config, check if it is a object and run clone 2020-06-17 14:56:57 +09:00
Kijin Sung
c90d529c74 Change method calls to static in many core modules 2020-05-24 20:43:52 +09:00
Kijin Sung
89ec44152e Convert most methods in FileModel to static 2020-05-24 19:23:42 +09:00
Kijin Sung
320d5596f6 Add config to control short URL for downloading 2020-03-15 00:54:56 +09:00
BJRambo
9cfd4ca363 관리자 체크를 함수로 하는 오류 고침 2019-12-24 22:54:46 +09:00
conory
63b5d0288b 모듈별 업로드 용량 설정시 '용량 초과' 오류 문제 수정
오브젝트 참조로 인해 getFileConfig() 재호출시 이전에 셋팅된 오브젝트가 유지되지 못하고 새로 셋팅되는 문제
2019-10-11 15:50:27 +09:00
conory
27af1fd8f6 direct_download = 'Y' 파일이라도 다운로드 권한이 없으면 게시자의 본문 삽입 전까지 act=getFileList에서 실경로를 획득할 수 없도록 보완 2019-10-10 16:30:57 +09:00
conory
77122a32b2 is_command() 대체 2019-10-09 23:28:23 +09:00
conory
4bb380cfa8 관리자 업로드시 용량 제한을 '제한 없음'으로 표시 2019-10-05 13:26:45 +09:00
conory
16e44d44c7 움직이지 않는 gif도 mp4로 변환되는 문제 수정
FFmpeg 사용 불가 안내 메시지 추가
추후에 활용하기 위한 type, width, height, duration 컬럼 추가
업로드시 이미지, 오디오, 동영상 파일의 확장자가 잘못된 경우 올바른 확장자를 덧붙이는 기능 추가
2019-10-01 22:50:38 +09:00
conory
cdbc2d7a82 동영상 섬네일, GIF로 취급 기능 추가
이미지, 동영상 첨부시 구분할 수 있도록 그 섬네일에 play 아이콘 추가
모듈별 파일 설정시 파일 모듈의 업로드 기본, 이미지, 동영상 설정을 각각 달리 적용할 수 있도록 기본 설정 제어 옵션 분리
2019-09-27 00:34:19 +09:00
conory
c2025c4bde original_type로 column 이름 변경 2019-09-23 15:30:53 +09:00
conory
1fcba0a44c GIF → MP4 더 완벽하게... 2019-09-22 21:24:43 +09:00
Kijin Sung
941542b991 Implement files changelog 2019-09-14 00:22:24 +09:00
Kijin Sung
2cd2d0528b Add option to save changelog for files 2019-09-13 23:57:21 +09:00
Kijin Sung
65c8c6e9c1 Add experimental support for GIF->MP4 conversion 2019-09-13 16:18:15 +09:00
Kijin Sung
9d7f220417 Add option to apply maximum image size to administrator 2019-08-23 14:27:15 +09:00
Kijin Sung
669d5970d5 Fix allowed_extensions sometimes not being an array 2019-08-13 14:51:10 +09:00
Kijin Sung
84fcdb8cfd Fix incorrect type for allowed_extensions 2019-08-09 00:10:22 +09:00
Kijin Sung
6d2a91134c Add option to apply default file settings to module 2019-08-01 20:49:34 +09:00
Kijin Sung
c40a47724d Simplify allowed_filetypes input format 2019-08-01 15:57:05 +09:00
Kijin Sung
8c242327a8 Implement auto-rotation of uploaded images 2019-08-01 15:25:12 +09:00
Kijin Sung
b9208a682b Allow customization of resize and conversion quality 2019-08-01 14:28:29 +09:00
Kijin Sung
bf93afd7e5 Support converting BMP and WEBP images to JPG 2019-08-01 03:13:58 +09:00
Kijin Sung
c95f84adb8 Implement maximum image size constraint 2019-08-01 01:56:51 +09:00
Kijin Sung
d0ec85db3b Fix incorrect global filesize limit for admin
https://xetown.com/questions/1154564
2019-01-23 23:16:31 +09:00
Kijin Sung
ad00ac800b Update document, comment, file modules to throw exceptions 2018-09-05 23:55:50 +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
f8ac11bda6 isAccessible()로 통일 2017-12-12 13:23:45 +09:00
Kijin Sung
ae971306b7 Change instanceof Object to instanceof BaseObject 2017-12-01 01:10:48 +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
b8cd244836 Fix incorrect reporting of maximum allowed filesize 2017-06-29 19:51:00 +09:00
bnu
08d7483364 fix #2104 첨부 파일 목록을 가져올 때 호환성 문제 고침 2017-06-09 10:03:29 +09:00
bnu
3a031f53de #2092 c122946 보완 2017-05-31 17:36:23 +09:00
bnu
9756261a1a 2092 이슈에서 다른 잘못된 코드 수정 및 보완 2017-05-30 14:58:28 +09:00
Kijin Sung
9f95a7f9e1 Fix invalid request error in getFileList() 2017-05-30 13:42:40 +09:00
bnu
71ca1385ac fix #2092 권한이 없는 글의 첨부된 파일 목록을 볼 수 있는 문제 고침 2017-05-30 12:14:16 +09:00
Kijin Sung
8520037459 Do not double-escape filenames 2017-01-18 00:02:48 +09:00
Kijin Sung
d981b649c1 Enforce php.ini limits when not using CKEditor + jQuery File Upload 2016-12-17 23:44:18 +09:00
Kijin Sung
193fab949d Eliminate php.ini restrictions on all file sizes 2016-12-17 20:51:10 +09:00
lsc2687
6438927f7e 파일 크기 제한, 문서 첨부 제한 설정 오류 수정
upload_max_filesize가 MB단위로 되어있지 않은 경우(ex. 2G) 발생하던 오류를 수정했습니다.
2016-09-25 14:32:09 +09:00
sejin7940
17dd0c9061 Update file.model.php 2016-08-02 15:57:26 +09:00
conory
dc79c3ea9d 좀 더 정확하게 파일 경로 지정 2016-03-18 20:37:16 +09:00
conory
7125cf0e12 본문 삽입시 이미지 URL을 상대경로로 변경 2016-03-18 20:14:52 +09:00
conory
90400e2b5f 모두 lang() 함수로 변경 2016-03-06 17:01:15 +09:00
Kijin Sung
3a419d586d Improve backward compatibility with AXUpload5 and other third-party AJAX apps 2016-01-26 10:32:59 +09:00