Marcel Werk [Sat, 8 Jun 2024 11:34:57 +0000 (13:34 +0200)]
Guest tokens
Marcel Werk [Sat, 8 Jun 2024 11:15:20 +0000 (13:15 +0200)]
Change template name to shared version
Marcel Werk [Sat, 8 Jun 2024 11:13:31 +0000 (13:13 +0200)]
Merge branch 'master' of https://github.com/WoltLab/WCF
Marcel Werk [Sat, 8 Jun 2024 11:13:09 +0000 (13:13 +0200)]
Remove obsolete jquery code for the captcha registration
Marcel Werk [Sat, 8 Jun 2024 11:02:20 +0000 (13:02 +0200)]
Convert `captchaQuestion` to a shared template
Alexander Ebert [Sat, 8 Jun 2024 10:23:07 +0000 (12:23 +0200)]
Merge pull request #5905 from WoltLab/upload-pipeline-v2
Upload Pipeline v2
Alexander Ebert [Fri, 7 Jun 2024 16:30:10 +0000 (18:30 +0200)]
Mark the legacy file system methods as deprecated
Alexander Ebert [Fri, 7 Jun 2024 16:18:51 +0000 (18:18 +0200)]
Add support for copying files
Alexander Ebert [Fri, 7 Jun 2024 15:17:54 +0000 (17:17 +0200)]
Remove legacy methods for attachment handling
Alexander Ebert [Fri, 7 Jun 2024 15:13:09 +0000 (17:13 +0200)]
Replace references to the old JS for attachments
Alexander Ebert [Sun, 2 Jun 2024 11:16:51 +0000 (13:16 +0200)]
Add the SQL structure to the DDL PIP
Alexander Ebert [Sat, 1 Jun 2024 12:38:11 +0000 (14:38 +0200)]
Create a WebP variant of the source file
Alexander Ebert [Sat, 25 May 2024 13:16:56 +0000 (15:16 +0200)]
Improve the eTag handling of file downloads
Alexander Ebert [Sat, 25 May 2024 13:12:42 +0000 (15:12 +0200)]
Migrate attachments to the new file upload API
Alexander Ebert [Sat, 25 May 2024 13:12:05 +0000 (15:12 +0200)]
Add a new worker implementation with a linear, predictable runtime
Alexander Ebert [Sun, 19 May 2024 11:12:22 +0000 (13:12 +0200)]
Add an option to limit the maximum file size
Alexander Ebert [Sat, 18 May 2024 11:55:19 +0000 (13:55 +0200)]
Validate the file size before querying the server
Alexander Ebert [Sat, 18 May 2024 11:34:59 +0000 (13:34 +0200)]
Fix the ETag handling
Alexander Ebert [Sat, 18 May 2024 11:22:34 +0000 (13:22 +0200)]
Increase the length of the secret to 32 characzers
Alexander Ebert [Sat, 18 May 2024 11:08:19 +0000 (13:08 +0200)]
Fix the `expires` header and force lowercased http headers
Alexander Ebert [Sat, 18 May 2024 10:56:13 +0000 (12:56 +0200)]
Move the ETag handling and switch to weak comparisons
Alexander Ebert [Sat, 18 May 2024 10:46:39 +0000 (12:46 +0200)]
Add support for limiting the number of uploaded files
Alexander Ebert [Sat, 18 May 2024 10:20:00 +0000 (12:20 +0200)]
Fix the call to a removed helper function
Alexander Ebert [Sun, 12 May 2024 10:37:53 +0000 (12:37 +0200)]
Add checksums for thumbnails and a rebuild worker
The checksum is computed based on the configuration of the thumbnail, allowing to detect when a thumbnail needs to be regenerated. If the checksum matches, the file hash is checked instead to detect damaged files.
Alexander Ebert [Sat, 11 May 2024 11:56:22 +0000 (13:56 +0200)]
Delete orphaned files
Alexander Ebert [Sat, 11 May 2024 11:43:35 +0000 (13:43 +0200)]
Add caching support to file downloads
Alexander Ebert [Wed, 8 May 2024 10:02:15 +0000 (12:02 +0200)]
Clean up files on delete
Alexander Ebert [Wed, 8 May 2024 09:30:03 +0000 (11:30 +0200)]
Add support for download tracking
This partially reverts the changes made in
bde83e6b8fc090654deaac827b342cea0b69695d
Alexander Ebert [Wed, 8 May 2024 09:10:55 +0000 (11:10 +0200)]
Minor code improvements
Alexander Ebert [Sun, 5 May 2024 21:29:11 +0000 (23:29 +0200)]
Add the documentation for the file processor interface
Alexander Ebert [Sun, 5 May 2024 21:14:24 +0000 (23:14 +0200)]
Add a default implementation for file processors
Alexander Ebert [Sun, 5 May 2024 21:05:09 +0000 (23:05 +0200)]
Add basic error messages
Alexander Ebert [Sun, 5 May 2024 11:02:17 +0000 (13:02 +0200)]
Add button phrases and simplify the button creation
Alexander Ebert [Sun, 5 May 2024 10:50:23 +0000 (12:50 +0200)]
Clean up the error and editor id handling
Alexander Ebert [Sun, 5 May 2024 10:19:16 +0000 (12:19 +0200)]
Move the attachment logic into a separate file
Alexander Ebert [Sat, 4 May 2024 11:11:54 +0000 (13:11 +0200)]
Reorganize the action buttons for attachments
Alexander Ebert [Sat, 4 May 2024 10:08:05 +0000 (12:08 +0200)]
Initialize the image viewer for dynamic attachments
Alexander Ebert [Sat, 4 May 2024 10:03:29 +0000 (12:03 +0200)]
Use `objectTypeID` instead of `typeName`
Alexander Ebert [Sat, 4 May 2024 09:37:15 +0000 (11:37 +0200)]
Add support for the image viewer for attachments
Alexander Ebert [Fri, 3 May 2024 15:23:48 +0000 (17:23 +0200)]
Implement a cleanup on file delete
Alexander Ebert [Fri, 3 May 2024 13:30:53 +0000 (15:30 +0200)]
Remove `downloads` and `lastDownloadTime`
These have been meaningless metrics for most of the time and also do not play nicely with the efficient distribution of files.
Alexander Ebert [Fri, 3 May 2024 13:02:47 +0000 (15:02 +0200)]
Improve the UI of uploaded attachments
Alexander Ebert [Mon, 29 Apr 2024 14:53:42 +0000 (16:53 +0200)]
Add some basic styling for uploaded attachments
Alexander Ebert [Mon, 29 Apr 2024 12:58:58 +0000 (14:58 +0200)]
Add support for uploads through drag and drop on the editor
Alexander Ebert [Fri, 26 Apr 2024 15:44:40 +0000 (17:44 +0200)]
Block drag & drop for illegal file extensions
Alexander Ebert [Fri, 26 Apr 2024 13:41:48 +0000 (15:41 +0200)]
Add the link to the full version to files
Alexander Ebert [Fri, 26 Apr 2024 13:28:32 +0000 (15:28 +0200)]
Initialize existing attachments
Alexander Ebert [Fri, 26 Apr 2024 11:23:59 +0000 (13:23 +0200)]
Bind uploaded attachments to the current user
Alexander Ebert [Thu, 25 Apr 2024 15:30:36 +0000 (17:30 +0200)]
Add an automated resizing for images exceeding the limits
Alexander Ebert [Thu, 25 Apr 2024 14:28:27 +0000 (16:28 +0200)]
Prevent the generation of thumbnails for small images
Alexander Ebert [Mon, 15 Apr 2024 16:34:14 +0000 (18:34 +0200)]
Unify the styling of attachments below a message
Alexander Ebert [Mon, 15 Apr 2024 16:19:53 +0000 (18:19 +0200)]
Fix the loading of the files of attachments
The list of files (plus their thumbnails) is already fetched in the base implementation `AttachmentList`.
Alexander Ebert [Mon, 15 Apr 2024 10:50:00 +0000 (12:50 +0200)]
Add a secret to upload files
The placement of files depends on the file extension, allowing files to be efficiently served by the web server instead of blocking a PHP worker.
Alexander Ebert [Mon, 15 Apr 2024 10:46:33 +0000 (12:46 +0200)]
Use file extensions other than `.bin` for safe types
Alexander Ebert [Mon, 15 Apr 2024 10:18:16 +0000 (12:18 +0200)]
Skip thumbnails for non-image files
Alexander Ebert [Sun, 14 Apr 2024 11:11:09 +0000 (13:11 +0200)]
Use `File::getSourceName()` to avoid accidental leaks
Alexander Ebert [Sun, 14 Apr 2024 11:10:05 +0000 (13:10 +0200)]
Add `getPathname()` to simplify the file access
Alexander Ebert [Sat, 13 Apr 2024 22:37:11 +0000 (00:37 +0200)]
Cache the width and height of images
Alexander Ebert [Sat, 13 Apr 2024 22:11:49 +0000 (00:11 +0200)]
Clean up some TODOs
Alexander Ebert [Sat, 13 Apr 2024 16:59:26 +0000 (18:59 +0200)]
Always create thumbnails using WebP
Alexander Ebert [Sat, 13 Apr 2024 16:45:51 +0000 (18:45 +0200)]
Fix the error handling of failed context validations
Alexander Ebert [Sun, 7 Apr 2024 23:09:05 +0000 (01:09 +0200)]
Unify the handling of the attachment context
Alexander Ebert [Thu, 28 Mar 2024 11:34:56 +0000 (12:34 +0100)]
Prototype to render files as HTML elements
Alexander Ebert [Thu, 28 Mar 2024 11:31:58 +0000 (12:31 +0100)]
Always load the file and thumbnails for attachments
Alexander Ebert [Wed, 27 Mar 2024 22:28:14 +0000 (23:28 +0100)]
Add support for attachment thumbnail
Alexander Ebert [Mon, 25 Mar 2024 10:42:11 +0000 (11:42 +0100)]
Fix the handling of validation errors
Alexander Ebert [Sun, 24 Mar 2024 15:47:45 +0000 (16:47 +0100)]
Add an API endpoint to delete files
Alexander Ebert [Fri, 22 Mar 2024 17:11:37 +0000 (18:11 +0100)]
Migrate the generation of thumbnails to the new API
Alexander Ebert [Fri, 22 Mar 2024 16:57:23 +0000 (17:57 +0100)]
Migrate the chunk upload to the new API
Alexander Ebert [Thu, 21 Mar 2024 17:36:14 +0000 (18:36 +0100)]
Remove the old controller for the preflight request
Alexander Ebert [Thu, 21 Mar 2024 13:08:57 +0000 (14:08 +0100)]
Migrate the file upload preflight to the new API
Alexander Ebert [Sun, 3 Mar 2024 17:13:09 +0000 (18:13 +0100)]
Add the link to the uploaded file
Alexander Ebert [Sun, 3 Mar 2024 17:05:10 +0000 (18:05 +0100)]
Add the button to insert an image’s thumbnail
Alexander Ebert [Sun, 3 Mar 2024 17:04:48 +0000 (18:04 +0100)]
Forward the extra data from the file processor
Alexander Ebert [Sat, 2 Mar 2024 17:22:48 +0000 (18:22 +0100)]
Implement a button to insert the `[attach]` BBCode into the editor
Alexander Ebert [Sat, 2 Mar 2024 16:54:31 +0000 (17:54 +0100)]
Persistently track the mime type of uploaded files
Alexander Ebert [Sat, 2 Mar 2024 16:26:26 +0000 (17:26 +0100)]
Add basic support for thumbnails for the file element
Alexander Ebert [Fri, 1 Mar 2024 15:59:29 +0000 (16:59 +0100)]
Add a lifecycle behavior for uploaded files
Alexander Ebert [Thu, 29 Feb 2024 17:23:54 +0000 (18:23 +0100)]
Add the `woltlab-core-file` element to represent uploads
Alexander Ebert [Fri, 16 Feb 2024 17:35:34 +0000 (18:35 +0100)]
Add support for image thumbnails
Alexander Ebert [Thu, 15 Feb 2024 18:26:05 +0000 (19:26 +0100)]
Add basic support for thumbnails
Alexander Ebert [Thu, 15 Feb 2024 17:43:54 +0000 (18:43 +0100)]
Add the ability to attach custom response data
Alexander Ebert [Thu, 15 Feb 2024 16:24:45 +0000 (17:24 +0100)]
Delegate attachments to the file upload system
Alexander Ebert [Wed, 31 Jan 2024 16:24:09 +0000 (17:24 +0100)]
Prototype for the delegation of attachments to the file API
Alexander Ebert [Sun, 28 Jan 2024 19:09:15 +0000 (20:09 +0100)]
Add support for an extension based filter
Alexander Ebert [Sun, 28 Jan 2024 16:11:11 +0000 (17:11 +0100)]
Improve the error handling of the preflight request
Alexander Ebert [Sat, 27 Jan 2024 16:02:26 +0000 (17:02 +0100)]
Simplify the handling of context data
Alexander Ebert [Fri, 26 Jan 2024 17:00:25 +0000 (18:00 +0100)]
Add basic support for file processors
Alexander Ebert [Tue, 16 Jan 2024 16:24:40 +0000 (17:24 +0100)]
Write the chunks into the file directly
This avoids having to buffer the data into separate files which causes a lot of I/O when stitching the file together.
Alexander Ebert [Tue, 16 Jan 2024 11:34:43 +0000 (12:34 +0100)]
Track the number of uploaded chunks
Allow for up to 255 chunks and track the state of each uploaded chunks. The `chunks` property is effectively a bitmap whose length represents the number of chunks
Alexander Ebert [Thu, 28 Dec 2023 17:00:52 +0000 (18:00 +0100)]
Convert a temporary file into a persistent file
Alexander Ebert [Thu, 28 Dec 2023 16:21:56 +0000 (17:21 +0100)]
Create the basic data structure for a persistent file
Alexander Ebert [Thu, 28 Dec 2023 16:01:54 +0000 (17:01 +0100)]
Use a single source of truth for temporary filenames
Alexander Ebert [Thu, 28 Dec 2023 15:37:34 +0000 (16:37 +0100)]
Add a proper DBO for the handling of temporary files
Alexander Ebert [Thu, 28 Dec 2023 12:24:59 +0000 (13:24 +0100)]
Dynamically calculate the chunk size
Alexander Ebert [Wed, 27 Dec 2023 17:06:10 +0000 (18:06 +0100)]
Remove the unnecessary table `wcf1_file_chunk`
There is no need to track each chunk because we can simply use the file system as the single source of truth.
Alexander Ebert [Wed, 27 Dec 2023 16:54:10 +0000 (17:54 +0100)]
Add SHA-256 checksums to the uploaded data
Alexander Ebert [Tue, 26 Dec 2023 18:20:15 +0000 (19:20 +0100)]
Use buffers to write uploaded files
Alexander Ebert [Tue, 26 Dec 2023 14:23:15 +0000 (15:23 +0100)]
Implement a naive chunked upload
Alexander Ebert [Mon, 25 Dec 2023 18:51:53 +0000 (19:51 +0100)]
Add PoC implementation for chunked uploads