Kijin Sung
47cb8ca4ff
Fix double escape of filename in short download URL #2611
2025-11-05 11:51:56 +09:00
Kijin Sung
c17243e02a
Include in file list even if upload_target_type is null
2025-01-09 19:49:48 +09:00
Kijin Sung
818fd54b00
Add mime_type, width, height, duration to all file-related responses
2024-12-15 18:39:05 +09:00
Kijin Sung
3ffeb63afb
Enforce allowed filesize and type in extra var upload form
2024-10-09 11:36:14 +09:00
Kijin Sung
6c07ce75e6
Make upload_target_type hint compatible with old 3-letter shortcuts
2024-10-07 22:38:53 +09:00
Kijin Sung
798733cf11
Fix incorrect type in doc comment
2024-10-07 22:36:43 +09:00
Kijin Sung
ef0ef45303
Allow filtering file list by upload target type
2024-10-07 22:35:50 +09:00
Kijin Sung
117023817d
Eliminate unnecessary AJAX calls to file.getFileList
...
에디터 로딩 직후, 파일 업로드 직후, 파일 삭제 직후
첨부목록 갱신을 위해 file.getFileList를 호출하도록 되어 있는데,
첨부목록을 직전 요청의 응답과 함께 반환하도록 변경하여
불필요한 AJAX 요청이 발생하지 않도록 하고, 로딩 속도를 개선함.
2024-04-16 22:38:53 +09:00
Kijin Sung
426027509c
Use raw bytes, not MB, when setting allowed filesize in session
2023-11-06 08:39:15 +09:00
Kijin Sung
a647fff6b8
Allow setting file size and extension limits in setUploadInfo()
2023-11-06 08:24:04 +09:00
Kijin Sung
99de7db35a
Fix RVE-2023-6 (getFileList)
2023-11-01 22:36:05 +09:00
Kijin Sung
e5bea38a9e
Fix #2183 inconsistent return type comments in File controller and model classes
2023-09-16 18:51:57 +09:00
Kijin Sung
a5ed417480
Fix warnings in PHP 8.x
2023-09-06 21:10:11 +09:00
mmx900
17e14546dd
Apply allow_indexing_format to procFileDownload()
2023-06-30 21:10:01 +09:00
Kijin Sung
f7c01cccfb
Add options to convert AVIF and HEIC images using ImageMagick 7.x
2023-05-24 14:28:26 +09:00
Kijin Sung
c5267b42fd
Remove trailing whitespace
2023-01-30 21:37:41 +09:00
Kijin Sung
97e14fee65
Fix incorrectly capitalized class names in file module
2022-12-27 23:13:10 +09:00
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