Fix path-buf-push-overwrite
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
38ab1083e3
commit
53fe2362fc
1 changed files with 1 additions and 3 deletions
|
@ -559,9 +559,7 @@ mod tests {
|
|||
.db
|
||||
.create_file_metadata(None, mxc, width, height, Some(content_disposition), Some(content_type))
|
||||
.unwrap();
|
||||
let mut r = PathBuf::new();
|
||||
r.push("/tmp");
|
||||
r.push("media");
|
||||
let mut r = PathBuf::from("/tmp/media");
|
||||
// r.push(base64::encode_config(key, base64::URL_SAFE_NO_PAD));
|
||||
// use the sha256 hash of the key as the file name instead of the key itself
|
||||
// this is because the base64 encoded key can be longer than 255 characters.
|
||||
|
|
Loading…
Add table
Reference in a new issue