Skip to contents

Creates a shinyvalidate input validator for Step 1 of the upload wizard. Validates required fields: artwork name, collection selection, and file uploads (PNG image, Procreate canvas, MP4 video, stats image).

Usage

validator_step_1()

Value

A [shinyvalidate::InputValidator] object configured with Step 1 validation rules. Call `$enable()` to activate validation.

Details

The validator enforces: - Artwork name: required, alphanumeric with spaces/underscores/dashes only - Collection: required selection - Stats file: single PNG or JPEG image - Artwork image: single PNG file - Canvas file: single Procreate file - Video file: single MP4 file

See also

* [validator_step_2()] for Step 2 validation * [ckfile()] for file extension checking * [shinyvalidate::InputValidator] for validator methods

Other validation: ckfile(), validator_step_2()

Examples

if (FALSE) { # \dontrun{
# In server
iv_1 <- validator_step_1()

observeEvent(input$btn_submit, {
  iv_1$enable()
  if (iv_1$is_valid()) {
    # Process form
    iv_1$disable()
  }
})
} # }