Skip to content

Commit

Permalink
add image constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDavenport committed Apr 21, 2024
1 parent ba0492b commit 469373b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gamercade_interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ pub const REVIEW_COMMENTS_MAX_LENGTH: usize = 1027;
pub const SESSION_METADATA_KEY: &str = "gc-session-bin";
pub const URL_RADIX: usize = 16;

pub const IMAGE_MAX_SIZE_BYTES: usize = 1024 * 1024 * 3; // 3mb
pub const IMAGE_MAX_WIDTH: usize = 300;
pub const IMAGE_MAX_HEIGHT: usize = 300;

#[derive(Debug, Clone)]
pub struct Session([u8; 16]);

Expand Down

0 comments on commit 469373b

Please sign in to comment.