Configuring gallery slide options

Gallery slide options are used to restrict what users can request when uploading gallery slides.

An example configuration looks like this:

gallery_slide_options:
  max_upload_size_bytes: 5_000_000 # 5 MB
  max_pending_requests_per_user: 3
  max_request_duration_seconds: 1209600 # 14 days
  default_request_duration_seconds: 604800  # 7 days
  max_request_start_delay_seconds: 1209600 # 14 days

These options are pretty intuitive.

  • max_upload_size_bytes restricts the maximum size (in bytes) of a slide that a user may upload
  • max_pending_requests_per_user does not currently do anything. It will eventually prevent users from spamming requests.
  • max_request_duration_seconds sets the maximum duration a user can request between their start datetime and end datetime.
  • default_request_duration_seconds sets the default duration for new slide upload requests, which the user may change.
  • max_request_start_delay_seconds prevents users from scheduling content too far into the future. They cannot set a start date later than the current datetime + max_request_start_delay_seconds seconds.

Content managers for a particular gallery may update the original values to bypass max_request_duration_seconds and max_request_start_delay_seconds when managing content.