@@ -5,6 +5,59 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ 0.15.0] - 2024-03-27
9
+
10
+ ### Added
11
+
12
+ - Allow to override filename when using ` random_url ` by @tessus in [ #233 ] ( https://github.com/orhun/rustypaste/pull/233 )
13
+
14
+ Now you can use the ` filename ` header to override the name of the uploaded file.
15
+
16
+ For example:
17
+
18
+ ``` sh
19
+ curl -F " file=@x.txt" -H " filename:override.txt" http://localhost:8000
20
+ ```
21
+
22
+ Even if ` random_url ` is set, the filename will be override.txt
23
+
24
+ [ ` rustypaste-cli ` ] ( https://github.com/orhun/rustypaste-cli ) also has a new argument for overriding the file name:
25
+
26
+ ``` sh
27
+ rpaste -n filename-on-server.txt awesome.txt
28
+ ```
29
+
30
+ - Use more specific HTTP status codes by @tessus in [ #262 ] ( https://github.com/orhun/rustypaste/pull/262 )
31
+
32
+ ` rustypaste ` now returns more appropriate status codes in the following 2 cases (instead of a generic 500 code):
33
+
34
+ - If the mime type is on the blacklist: ` UnsupportedMediaType ` (415)
35
+ - If the file already exists: ` Conflict ` (409)
36
+
37
+ ### Changed
38
+
39
+ - Do path joins more safely by @RealOrangeOne in [ #247 ] ( https://github.com/orhun/rustypaste/pull/247 )
40
+ - Gracefully exit when there is no config file found by @orhun
41
+ - Switch to cargo-llvm-cov for code coverage by @orhun in [ #260 ] ( https://github.com/orhun/rustypaste/pull/260 )
42
+ - Replace unmaintained action by @tessus in [ #266 ] ( https://github.com/orhun/rustypaste/pull/266 )
43
+ - Set up mergify by @orhun
44
+ - Apply clippy suggestions by @orhun
45
+ - Update funding options by @orhun
46
+ - Update the copyright years by @orhun
47
+ - Bump dependencies
48
+
49
+ ### Fixed
50
+
51
+ - Improve logging for deleted file by @tessus in [ #235 ] ( https://github.com/orhun/rustypaste/pull/235 )
52
+ - Fix deployment by @tessus in [ #236 ] ( https://github.com/orhun/rustypaste/pull/236 )
53
+ - Return the correct file on multiple files with same name by @tessus in [ #234 ] ( https://github.com/orhun/rustypaste/pull/234 )
54
+ - Update the hash of the example file by @tessus in [ #254 ] ( https://github.com/orhun/rustypaste/pull/254 )
55
+ - Error on upload with the same filename by @tessus in [ #258 ] ( https://github.com/orhun/rustypaste/pull/258 )
56
+
57
+ ### New Contributors
58
+
59
+ - @RealOrangeOne made their first contribution in [ #247 ] ( https://github.com/orhun/rustypaste/pull/247 )
60
+
8
61
## [ 0.14.4] - 2023-12-20
9
62
10
63
### Removed
0 commit comments