Commit graph

27 commits

Author SHA1 Message Date
Miguel Jacq
e425c643f5
Encode the file name when adding it to the 'link' attribute of each file.
This lets the file be downloaded if it has a special character e.g #.
2025-02-10 16:42:28 +11:00
Miguel Jacq
d78556e8c5
Allow logging filenames in website mode as well 2025-02-08 16:35:58 +11:00
Miguel Jacq
c886a449ad
Fix file interpolation 2025-02-08 16:26:26 +11:00
Miguel Jacq
b7a2473c26
Log the path for the main 'Download Files' button too, for consistency 2025-02-08 16:19:35 +11:00
Miguel Jacq
249d7e5149
Log newline to stdout even if on Mac (the old issue #203 should no longer be relevant) 2025-02-08 16:11:46 +11:00
Wes Appler
4128cad08f Added optional filename logging for individual file downloads 2024-10-08 23:00:17 -04:00
Miguel Jacq
cf6a6e4590
Add trailing slash on directories in website mode to assist with relative asset links 2023-10-17 17:45:23 +11:00
Miguel Jacq
9a19c47185
Removed some deprecation warnings spotted in pytest output. Harden waitress 2023-05-30 10:46:11 +10:00
Micah Lee
305abff13c
Remove cleanup_tempfiles altogether because they are not being used 2022-02-13 10:40:55 -08:00
Micah Lee
33fd639f2a Use a TemporaryDirectory instead of NamedTemporaryFile to avoid opening an already open file in Windows 2022-02-09 18:19:50 -08:00
Micah Lee
ababc2de46
Update copyright year to 2022 2022-01-16 16:15:49 -08:00
Micah Lee
1dde6f6deb
Add temp file to cleanup list just once when its first created 2021-12-02 18:51:06 -08:00
Micah Lee
8ec9a24af1
Explicitly cleanup temp files and dirs 2021-12-01 20:34:54 -08:00
Micah Lee
b659eccfbf
Use a NamedTemporaryFile instead of TemporaryFile for streamed gzip files 2021-11-18 20:17:39 -08:00
Micah Lee
f5b60de2e6
Use high level tempfile classes that clean up after themselves 2021-11-18 20:03:18 -08:00
whew
eeacd8c507
Merge branch 'develop' into add_security_headers 2021-05-31 12:13:58 +00:00
whew
c19dc4fa78
Update send_base_mode.py 2021-05-13 08:14:33 +00:00
Miguel Jacq
d4d6eea500
Move the 'supports_file_requests' attribute into the actual modes rather than the Web class 2021-05-11 09:25:22 +10:00
Miguel Jacq
2618e89eda
Register the 405 error handler properly. Enforce the appropriate methods for each route (GET or POST only, with OPTIONS disabled). Add tests for invalid methods. Add a friendlier 500 internal server error handler 2021-05-10 11:23:44 +10:00
Micah Lee
34771e3ea9
When building the self.files, use forward slashes instead of backslashes in Windows 2021-05-04 20:01:30 -07:00
Micah Lee
0a6056e5e6
Fix flake8 issues found in cli 2021-04-29 17:13:05 -07:00
Aksh Gupta
ea8d2cfdfe chore: refactor code quality issues 2021-03-10 22:59:47 +05:30
Micah Lee
2a7d9dbd51
Update copyright year to 2021 2021-02-22 13:35:14 -08:00
Kcchouette
89043b8545
use utf8 name too for file downloading 2021-01-31 16:37:45 +05:30
Kcchouette
c103108b28
Update send_base_mode.py 2021-01-31 16:36:09 +05:30
Micah Lee
abca27cb58
Allow directory listing work with or without trailing slash (removing trailing slash by default), and make directory listing links absolute instead of relative 2020-11-23 14:52:52 -08:00
Micah Lee
f4abcf1be9
Add onionshare CLI to cli folder, move GUI to desktop folder, and start refactoring it to work with briefcase 2020-10-12 22:40:55 -07:00