Reduce media ID length from 256 to 32
Most common filesystems limit paths to 255 bytes. This change brings down the media ID length to be similar to Synapse servers (25), and makes it possible for clients to download media with the ID included in the filename.
This commit is contained in:
parent
f0beffb0a9
commit
26e200e290
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ use ruma::api::client::{
|
||||||
use rocket::{get, post};
|
use rocket::{get, post};
|
||||||
use std::convert::TryInto;
|
use std::convert::TryInto;
|
||||||
|
|
||||||
const MXC_LENGTH: usize = 256;
|
const MXC_LENGTH: usize = 32;
|
||||||
|
|
||||||
#[cfg_attr(feature = "conduit_bin", get("/_matrix/media/r0/config"))]
|
#[cfg_attr(feature = "conduit_bin", get("/_matrix/media/r0/config"))]
|
||||||
pub fn get_media_config_route(
|
pub fn get_media_config_route(
|
||||||
|
|
Loading…
Add table
Reference in a new issue