Skip to content
Snippets Groups Projects
Commit 53fe2362 authored by Jason Volk's avatar Jason Volk Committed by 🥺
Browse files

Fix path-buf-push-overwrite


Signed-off-by: default avatarJason Volk <jason@zemos.net>
parent 38ab1083
No related branches found
No related tags found
Loading
...@@ -559,9 +559,7 @@ fn get_url_preview(&self, _url: &str) -> Option<UrlPreviewData> { todo!() } ...@@ -559,9 +559,7 @@ fn get_url_preview(&self, _url: &str) -> Option<UrlPreviewData> { todo!() }
.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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment