Fix path-buf-push-overwrite
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -559,9 +559,7 @@ mod tests {
|
|||||||
.db
|
.db
|
||||||
.create_file_metadata(None, mxc, width, height, Some(content_disposition), Some(content_type))
|
.create_file_metadata(None, mxc, width, height, Some(content_disposition), Some(content_type))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let mut r = PathBuf::new();
|
let mut r = PathBuf::from("/tmp/media");
|
||||||
r.push("/tmp");
|
|
||||||
r.push("media");
|
|
||||||
// r.push(base64::encode_config(key, base64::URL_SAFE_NO_PAD));
|
// 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
|
// 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.
|
// this is because the base64 encoded key can be longer than 255 characters.
|
||||||
|
|||||||
Reference in New Issue
Block a user