aboutsummaryrefslogtreecommitdiff
path: root/fshare.py
Commit message (Collapse)AuthorAge
* Share more path handling for GET and DELETE.Anton Khirnov2023-12-12
|
* Implement DELETE in public mode.Anton Khirnov2023-12-12
| | | | Reprted by another.
* Fix DELETE handling for private mode.Anton Khirnov2023-12-12
| | | | | | Public mode is still broken. Reported by another.
* Do not use _process_path() in do_POST()Anton Khirnov2023-03-30
| | | | | | | | | The submitted request path is not a filesystem path, so it makes no sense to process it like one. * unquote it as UTF-8, not ASCII, since the user can submit unicode filenames * perform basic sanitization on the URL returned to the user
* Handle map characters outside of the alphabet.Anton Khirnov2022-09-15
| | | | Can happen when importing maps from elsewhere.
* Do not override program name in argparser.Anton Khirnov2022-09-15
|
* Add a public mode.Anton Khirnov2022-09-15
| | | | In this mode, the server returns short easy to remember URLs.
* Relicence to AGPLAnton Khirnov2022-09-15
|
* Log the bind address/port/family.Anton Khirnov2022-09-15
|
* Split exception handling for reading state and running the server.Anton Khirnov2022-09-14
|
* Cleanly exit on KeyboardInterrupt.Anton Khirnov2022-09-14
|
* Use the exit stack for releasing the state dir lock.Anton Khirnov2022-09-14
|
* Use an ExitStack in the main block.Anton Khirnov2022-09-14
| | | | Simplifies cleanup and will be more useful in future commits.
* Change state file to a state dir.Anton Khirnov2022-06-27
| | | | | | | We may want to store multiple state files in the future. Also, lock the state dir to ensure only one instance is running for a state dir.
* Allow retrieving files through arbitrary filenames.Anton Khirnov2021-06-02
| | | | | | | | The URL returned from POST is now /<secret HMAC>/<original basename> The file can be retrieved through /<secret HMAC>/<anything>. This should be more convenient, as ups->wget will now produce the original filename rather than a long string of gibberish.
* Change extension handling.Anton Khirnov2021-01-06
| | | | | | | | Store POSTed files as pure HMAC - without any extensions - but still keep the extension in the returned URL. Disregard the extension in GET requests, allowing to access the files with any extension.
* Preserve POSTed file extensions, if provided.Anton Khirnov2021-01-05
|
* Send the URL with Content-Type=text/plainAnton Khirnov2021-01-05
|
* Send OK instead of No Content.Anton Khirnov2021-01-05
| | | | There actually is content - the URL.
* Catch and log top-level exceptions.Anton Khirnov2021-01-04
|
* Log to syslog, with optional stderr.Anton Khirnov2021-01-04
|
* Initial commit.Anton Khirnov2021-01-04