s3Input() {
    const {getS3Info, name, defaultPreview, required} = this.props
    const {imagePreviewUrl, valid} = this.state

    function getValue() {
      if (!valid) {
        return ''
      }

      return imagePreviewUrl || defaultPreview
    }

    return (
      getS3Info && (
        <input
          type="hidden"
          name={name}
          value={getValue()}
          id="s3-input"
          required={required}
        />
      )
    )
  }
// since you can't set file input values programmatically
since you can't set file input values programmatically
since you can ' t set file input values programmatically
s3Input() {
    const {getS3Info, name, defaultPreview, required} = this.props
    const {imagePreviewUrl, valid} = this.state
    function getValue() {
      if (!valid) {
        return ''
      }
      return imagePreviewUrl || defaultPreview
    }
    return (
      getS3Info && (
        <input
          type="hidden"
          name={name}
          value={getValue()}
          id="s3-input"
          required={required}
        />
      )
    )
  }
s3Input ( ) { const { getS3Info , name , defaultPreview , required } = this . props const { imagePreviewUrl , valid } = this . state function getValue ( ) { if ( ! valid ) { return '' } return imagePreviewUrl || defaultPreview } return ( getS3Info && ( < input type = "hidden" name = { name } value = { getValue ( ) } id = "s3-input" required = { required } / > ) ) }
since you can't set file input values programmatically
since you can ' t set file input values programmatically