Commit Graph

55 Commits

Author SHA1 Message Date
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
e389d81aeb feat: change thumbnail route from /uploads/thumbnail/ to /thumbnail/ in app.py 2024-12-03 20:56:29 +00:00
201a78c963 feat: restrict thumbnail path to upload directory to prevent directory traversal 2024-12-03 20:54:58 +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
b1d1974704 feat: add pillow dependency and thumbnail endpoint for uploaded images 2024-12-03 20:45:26 +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
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
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
da7fa63169 chore: add border-radius to thumbnails and register /uploads static route 2024-11-26 06:59:09 +00:00
bda8470f67 style: adjust h2 margin-top and remove redundant line breaks in upload page 2024-11-26 06:44:15 +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
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
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
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
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
5570ecacb2 style: replace solid white background with subtle gradient in main container 2024-11-26 06:31:36 +00:00
02dd36aa06 style: add word-break rule to upload page CSS for long filename wrapping 2024-11-26 06:29:06 +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
bot
934387860a chore: rebuild rupload 1.3.37 wheel and sdist with updated compiled bytecache 2024-11-26 06:10:05 +00:00
b67024ab06 fix: fix index extraction from upload URL message using find instead of hardcoded offset
The previous implementation used a hardcoded offset of `len("here: ")` from the start of the string after `"here:"`, which would fail if the URL appeared at a different position or if the message structure changed. This commit replaces the brittle slice with a dynamic `str.find()` call to locate the `"here: "` substring, ensuring the URL is correctly extracted regardless of its position in the message. The fix applies to the `handle_index` handler in `src/rupload/app.py`.
2024-11-26 06:08:41 +00:00
bot
bff6baaa45 chore: update rupload wheel and sdist to version 1.3.37 with refreshed pyc bytecode 2024-11-26 06:08:25 +00:00
87ebae5a79 fix: replace hardcoded upload url extraction with dynamic "here:" prefix parsing in handle_index 2024-11-26 06:07:13 +00:00
bot
c2394502b5 chore: update rupload wheel and sdist binaries to version 1.3.37 with refreshed pyc cache 2024-11-26 06:01:31 +00:00
009b2ad475 fix: correct URL extraction offset in handle_index anchor generation 2024-11-26 06:00:06 +00:00
bot
9defb4e1b2 chore: remove outdated dist artifacts and __pycache__ bytecode for rupload 1.3.37 2024-11-26 05:58:49 +00:00
ad8cbe211c fix: correct variable name typo 'rquest' to 'request' in upload URL extraction logic 2024-11-26 05:57:32 +00:00
bot
b97c05ceb8 chore: update rupload wheel and sdist to version 1.3.37 with rebuilt pyc cache 2024-11-26 05:57:27 +00:00
351934b9ed fix: correct upload URL replacement logic to handle edge cases with trailing slashes
The previous implementation incorrectly sliced the URL from the message by starting at the found index without accounting for the length of the upload URL, causing malformed anchor tags when the URL contained trailing slashes. This fix adjusts the slicing to start after the full upload URL string and properly escapes double quotes in the href attribute.
2024-11-26 05:56:12 +00:00
bot
0dcb3f0d45 chore: rebuild rupload 1.3.37 wheel and sdist with updated compiled bytecache 2024-11-26 05:52:14 +00:00
bcb18e8195 fix: add missing slash between upload_url and filename in generate_upload_url
The generate_upload_url method previously concatenated self.upload_url directly with the filename, producing malformed URLs when upload_url did not end with a trailing slash. Changed the concatenation to insert "/" between the base URL and filename, ensuring correct redirect paths regardless of upload_url format.
2024-11-26 05:50:56 +00:00
bot
ee4d3dfd47 chore: update rupload wheel and sdist binaries to version 1.3.37 with refreshed pyc cache 2024-11-26 05:50:08 +00:00
a280f5dec7 fix: fix AttributeError in handle_upload by calling generate_upload_url on request.app instead of self 2024-11-26 05:48:39 +00:00
bot
098b70fd09 chore: update binary wheel and source distribution for rupload 1.3.37 release 2024-11-26 05:48:01 +00:00
1aa4712a86 fix: change static file mount point from /uploads to root path in app router 2024-11-26 05:46:42 +00:00
bot
d6e684a58c chore: update binary wheel and source distribution to version 1.3.37 with refreshed bytecode caches 2024-11-26 05:32:47 +00:00
462b7ebdee fix: fix syntax error in mkdir call by removing trailing whitespace before closing parenthesis 2024-11-26 05:31:23 +00:00
fb327d2f9b feat: make upload path configurable via UPLOAD_PATH env var with fallback to ./uploads 2024-11-26 05:30:47 +00:00
bot
206d4ff6a6 chore: add built wheel and sdist for rupload 1.3.37 with updated pyc cache 2024-11-26 05:26:28 +00:00