Home

>

Tools

>

Payload CMS

>

Releases

>

Release 1.0.30

Payload CMS Release: Release 1.0.30

Tag Name: v1.0.30

Release Date: 8/30/2022

Payload CMS LogoPayload CMS

Payload CMS is a modern, self-hosted headless content management system built with TypeScript, Node.js, and MongoDB. It's designed specifically for developers who want full control over their content management system while maintaining a powerful admin interface for content editors.

TL;DR

PayloadCMS v1.0.30 fixes an important bug with upload field validation where it was incorrectly requiring uploads even when the field was not set as required. This release ensures that upload fields properly respect their required status, improving form validation behavior across the CMS.

Highlight of the Release

    • Fixed upload field validation to properly respect the required field setting
    • Improved form submission experience for content editors working with optional file uploads

Migration Guide

No migration is needed for this release. The fix for upload field validation is backward compatible and will automatically apply to all existing upload fields in your Payload CMS implementation.

Upgrade Recommendations

This release is recommended for all users who utilize upload fields in their Payload CMS implementation, especially if you have experienced issues with validation on non-required upload fields. The upgrade is low-risk and fixes a functional bug without introducing breaking changes.

Bug Fixes

Upload Field Validation Fix

Fixed an issue where upload fields were being treated as required during validation even when they were explicitly set as not required. This bug was causing form submission errors when users attempted to submit forms with empty upload fields that should have been optional.

The fix ensures that upload fields now properly respect their required configuration setting, allowing forms with optional upload fields to be submitted without validation errors.

New Features

No new features were added in this release.

Security Updates

No security fixes were included in this release.

Performance Improvements

No specific performance improvements were included in this release.

Impact Summary

This release addresses a specific bug with upload field validation in Payload CMS. Previously, upload fields were incorrectly being treated as required during validation regardless of their configuration, causing unnecessary validation errors and preventing form submissions when optional upload fields were left empty.

With this fix, upload fields now properly respect their required configuration setting, allowing for a more intuitive and expected user experience when working with forms that include optional file uploads. This change improves the overall usability of the CMS for content editors and eliminates the need for developers to implement workarounds for this validation issue.

Full Release Notes

Statistics:

File Changed3
Line Additions9
Line Deletions2
Line Changes11
Total Commits2

User Affected:

  • Can now properly submit forms with non-required upload fields without validation errors
  • No longer need to upload files for fields that should be optional

Contributors:

DanRibbens