Commit graph

276 commits

Author SHA1 Message Date
Kijin Sung
eaa0aee988 Update file count after copying document or comment with its files #2569 2025-06-17 13:37:26 +09:00
Kijin Sung
eba7b75c3a Fix undefined values and other warnings 2025-06-01 18:45:46 +09:00
Kijin Sung
792ea89e64 Fix incorrect image extension "N" after upgrading from older version 2025-05-21 16:26:01 +09:00
Kijin Sung
b09477a873 Fix incorrect extension when old file module config is used without updating 2025-05-02 11:30:35 +09:00
Kijin Sung
beec50f217 Prevent files from being deleted upon module deletion if they belong to documents or comments that have since been moved to a different module 2025-03-13 22:57:38 +09:00
Kijin Sung
b213fc1968 Fix module_srl not being updated for files attached to comments, when a document is moved to a different module 2025-03-13 22:38:05 +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
42b879d628 Throw exception instead of just exiting 2025-01-02 20:17:51 +09:00
Kijin Sung
d27f89f730 Add option to convert to WebP when resizing oversized images 2024-12-16 20:47:48 +09:00
Kijin Sung
9f75788491 Support more options for image autoconv 2024-12-16 20:43:09 +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
6a93e0c12d Fix excessive session data after accessing and voting on many documents and comments 2024-12-07 21:55:14 +09:00
Kijin Sung
b318e70fdf Allow calling setFilesValid() with specific list of file_srl 2024-10-08 15:26:43 +09:00
Kijin Sung
d1527ecc90 Don't truncate upload_target_type in setFilesValid() 2024-09-03 22:10:41 +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
6c113c22ed Fix unnecessary assignment by reference, which causes E_NOTICE 2024-01-04 10:25:25 +09:00
Kijin Sung
1c0f3cd2e2 Fix warnings in PHP 8.x during image adjustment 2023-12-30 20:37:09 +09:00
Kijin Sung
0d529ef682 Disable procFileImageResize and related ruleset 2023-12-13 22:35:22 +09:00
Kijin Sung
11b728bf4a Fix video aspect ratio when ffprobe returns rotation data in side_data_list
https://xetown.com/questions/1789336
2023-12-06 10:34:39 +09:00
Kijin Sung
908fd98270 Remove potentially problematic check for module_srl in procFileDelete; maybe related to #2211 2023-11-21 22:22:27 +09:00
Kijin Sung
9a6524d63d Allow pre-setting upload_target_type for each editor 2023-11-19 21:29:15 +09:00
Kijin Sung
5993072fa7 Fix possible type mismatch in upload info verification code
https://xetown.com/questions/1793825
https://xetown.com/questions/1794400
2023-11-10 17:14:12 +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
27a932d594 Display more detailed error message when upload info mismatch is found 2023-11-03 16:48:46 +09:00
Kijin Sung
f6a02fd006 Fix typo in procFileDelete 2023-11-02 21:18:59 +09:00
Kijin Sung
eda9af546c Automatically set module_srl in upload info, and check it strictly 2023-11-02 20:49:05 +09:00
Kijin Sung
bffa50dd15 Fix RVE-2023-6 (validate module_srl when uploading/deleting) 2023-11-02 13:19:41 +09:00
Kijin Sung
4a9a89b299 Fix RVE-2023-6 (procFileDelete, procFileSetCoverImage) 2023-11-01 22:32:47 +09:00
Kijin Sung
613518aa28 Fix RVE-2023-6 (procFileUpload, procFileIframeUpload) 2023-11-01 22:23:06 +09:00
Kijin Sung
10123a86a8 Fix incorrect aspect ratio after converting a vertical video
https://xetown.com/questions/1775808
2023-09-21 21:20:01 +09:00
Kijin Sung
b02582c890 Fix unused or undeclared variables in moveFile() 2023-09-16 18:53:16 +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
mmx900
17e14546dd Apply allow_indexing_format to procFileDownload() 2023-06-30 21:10:01 +09:00
Soyu Kim
4c73b1fa93
Merge branch 'rhymix:develop' into develop 2023-06-30 20:40:51 +09:00
Kijin Sung
e7275ba0e0 Use magick to resize images that are too large for GD 2023-06-21 20:05:50 +09:00
mmx900
9611fc7bda Fix #2114 Allow specifying file formats to be indexed 2023-06-14 19:13:48 +09:00
Kijin Sung
d1d2fa7686 Implement AVIF/HEIC -> JPG conversion using ImageMagick 7.x 2023-05-24 14:56:03 +09:00
Kijin Sung
51a4604750 Implement automatically cutting video duration 2023-05-24 13:35:07 +09:00
Kijin Sung
a14cf85763 Implement video auto resizing and reencoding 2023-05-24 13:16:11 +09:00
Kijin Sung
e544efcef6 Allow updating file information in file.insertFile (before) trigger 2023-05-21 21:12:40 +09:00
Kijin Sung
054d79cc28 Remove Firefox workaround that isn't needed anymore 2023-05-21 19:31:59 +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
270f84abe9 Separate image rotation check into its own method in FileHandler 2022-12-20 19:17:43 +09:00
Kijin Sung
772d26ee2f Prevent robots from indexing file download links
https://xetown.com/topics/1708853
2022-09-16 16:55:50 +09:00
Kijin Sung
df56b7f8b1 Fix files with .jfif extension not being recognized as JPEG image 2022-09-16 16:44:29 +09:00
Kijin Sung
9c07104eb2 Reduce file download key expiration to 5 minutes #1890 2022-03-11 01:45:13 +09:00