Commit Graph

78 Commits

Author SHA1 Message Date
85fec57bb7 feat: replace upload_path with upload_folder in thumbnail handler path resolution
The diff shows a single change in `src/rupload/app.py` within the `handle_thumbnail` function: the attribute `request.app.upload_path` is replaced with `request.app.upload_folder` when constructing the `thumbnail_path`. This aligns the thumbnail generation logic with the correct configuration key used elsewhere in the application, fixing a potential `AttributeError` or path mismatch when the `upload_path` attribute is undefined or deprecated.
2024-12-03 20:59:57 +00:00
0516bd4a5f fix: correct thumbnail path resolution to use request.app instead of app in handle_thumbnail 2024-12-03 20:59:06 +00:00
05b70cf94e fix: correct thumbnail path resolution to use app.upload_path instead of safe_path parent
The thumbnail path was incorrectly derived from the safe_path parent directory,
causing thumbnails to be stored relative to the file location rather than the
configured upload root. This change ensures thumbnails are consistently placed
under the application's upload_path/.thumbnail/ directory, fixing path resolution
for files in nested subdirectories.
2024-12-03 20:58:21 +00:00
bot
f08844193b chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-12-03 20:57:49 +00:00
e389d81aeb feat: change thumbnail route from /uploads/thumbnail/ to /thumbnail/ in app.py 2024-12-03 20:56:29 +00:00
bot
629439043d chore: update build artifacts for rupload 1.3.37 with strict mode and deprecated warnings disabled 2024-12-03 20:56:11 +00:00
201a78c963 feat: restrict thumbnail path to upload directory to prevent directory traversal 2024-12-03 20:54:58 +00:00
bot
458b98a870 chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-12-03 20:52:00 +00:00
92d855dd2a feat: remove existence check before file type validation in thumbnail handler 2024-12-03 20:50:32 +00:00
5ce5796abb fix: remove unsafe path join in handle_thumbnail to prevent directory traversal
The previous implementation joined the user-supplied path with the configured upload directory, but the resulting path was not validated against the intended base directory. This change removes the base path join entirely, leaving the path resolution to the caller or a separate validation layer. The fix prevents potential directory traversal attacks where a malicious path could escape the upload directory.
2024-12-03 20:50:16 +00:00
bot
6470e170f1 chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-12-03 20:46:42 +00:00
b1d1974704 feat: add pillow dependency and thumbnail endpoint for uploaded images 2024-12-03 20:45:26 +00:00
bot
5a2dd5f926 chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-12-01 09:28:48 +00:00
118140ca55 chore: extract default constants and add webp/svg to get_images extensions 2024-12-01 09:27:41 +00:00
ebad87c5d1 style: reformat imports, f-string, and line wrapping in rupload app and cli modules 2024-12-01 09:21:20 +00:00
bot
4821bae92f chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-11-26 07:26:51 +00:00
387a8dc9cd feat: add fallback message for empty upload status in handle_index response 2024-11-26 07:25:14 +00:00
bot
d7ab7ddb13 chore: update PKG-INFO installation instructions to use make commands instead of raw venv steps 2024-11-26 07:15:12 +00:00
40fa720ad9 fix: correct typo in virtual environment activation path in README
The activation script path in the installation instructions was missing a forward slash, changing 'bin/activate' to 'bin.activate'. This fix restores the correct path for sourcing the Python virtual environment.
2024-11-26 07:14:03 +00:00
a550667378 docs: replace pip-based install steps with make commands in README 2024-11-26 07:13:31 +00:00
bot
8317958a0f chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-11-26 07:04:56 +00:00
d564093193 feat: add full-screen black overlay with fade-in animation and interaction blocking
Implements a complete blacked-out visual state where all content is replaced by a solid black overlay covering the entire viewport. The overlay includes smooth fade-in animation and prevents any user interaction with underlying elements. This creates an immersive dark experience suitable for cinematic transitions or focus modes.
2024-11-26 07:03:36 +00:00
bot
ab304d82dc chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-11-26 07:00:36 +00:00
da7fa63169 chore: add border-radius to thumbnails and register /uploads static route 2024-11-26 06:59:09 +00:00
bot
1a60bd02ad chore: update binary wheel and source tarball to version 1.3.37 2024-11-26 06:45:41 +00:00
bda8470f67 style: adjust h2 margin-top and remove redundant line breaks in upload page 2024-11-26 06:44:15 +00:00
bot
400cc1dc52 chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-11-26 06:43:45 +00:00
2fa7c04898 style: reduce thumbnail margin to 3px and add line break before uploaded files section 2024-11-26 06:42:27 +00:00
bot
2e2d02340a chore: update built distribution archives for rupload v1.3.37 release 2024-11-26 06:42:22 +00:00
ef93230bed style: reduce thumbnail margin from 10px to 5px in upload page CSS for tighter grid density 2024-11-26 06:41:09 +00:00
bot
3a000f2ce5 chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-11-26 06:40:56 +00:00
5ce5a9ede3 style: adjust viewport initial-scale from 1.0 to 0.9 for better mobile layout scaling 2024-11-26 06:39:43 +00:00
bot
68828686bf chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-11-26 06:37:47 +00:00
d345030f86 style: add invert filter to container-images and fix HTML line breaks in image/file lists 2024-11-26 06:36:28 +00:00
bot
33e0155031 chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-11-26 06:34:09 +00:00
f6e41aa002 feat: replace static background image with brand-color css linear gradient in layout
Updated the main layout component's background styling by swapping the previous static image URL for a CSS linear-gradient using brand colors. This change improves page load performance and aligns the visual theme with the updated design system.
2024-11-26 06:32:52 +00:00
bot
e691bf5a18 chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-11-26 06:32:51 +00:00
5570ecacb2 style: replace solid white background with subtle gradient in main container 2024-11-26 06:31:36 +00:00
bot
1cab3d2147 chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-11-26 06:30:27 +00:00
02dd36aa06 style: add word-break rule to upload page CSS for long filename wrapping 2024-11-26 06:29:06 +00:00
bot
38d935f8ad chore: update binary wheel and source tarball to version 1.3.37 in dist directory 2024-11-26 06:27:39 +00:00
2bcf2dc990 chore: remove stale pycache binaries and fix .gitignore path from src/upload to src/rupload 2024-11-26 06:26:27 +00:00
f70f2854e1 style: update page title, monospace font, and wrap thumbnails in links in upload page 2024-11-26 06:25:27 +00:00
bot
0d16afae00 chore: add compiled pyc cache files and rebuild wheel/tarball for v1.3.37 2024-11-26 06:22:48 +00:00
1f43d61524 fix: correct syntax error in handle_index by removing stray equals sign 2024-11-26 06:21:23 +00:00
aeb54beb27 feat: fix malformed anchor tag syntax in handle_index response builder 2024-11-26 06:19:13 +00:00
f8c3fbee7d feat: fix f-string interpolation for anchor tag href attribute in handle_index 2024-11-26 06:18:20 +00:00
53925dab2c fix: correct URL hyperlink generation in upload success message handling
The handle_index function now properly constructs HTML anchor tags by splitting the message at the "here: " prefix instead of using the raw upload URL, fixing broken link rendering when the upload URL appears in the success message. The handle_upload function also adds a trailing space after the "here:" prefix to ensure consistent parsing.
2024-11-26 06:17:53 +00:00
bot
0c594872bc chore: update rupload package to version 1.3.37 with rebuilt wheel and sdist artifacts 2024-11-26 06:12:00 +00:00
bd5f0bd042 feat: wrap upload url in anchor tag with proper href attribute in handle_index 2024-11-26 06:10:41 +00:00