Home

>

Tools

>

Payload CMS

>

Releases

>

Release 0.6.8

Payload CMS Release: Release 0.6.8

Tag Name: v0.6.8

Release Date: 5/12/2021

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 v0.6.8 brings important improvements to file uploads with MIME type validation, enhances the preview functionality with locale support, and improves mobile experience by disabling user scalability. This release focuses on security and developer experience with no breaking changes.

Highlight of the Release

    • Added MIME type validation for file uploads to enhance security
    • Exposed locale data within preview functions for better internationalization support
    • Disabled user scalability on mobile for improved viewing experience
    • Restricted upload MIME types in file picker for better control

Migration Guide

No migration is required for this release as it contains only new features and improvements without breaking changes.

Upgrade Recommendations

This is a minor feature release with security improvements. It's recommended to upgrade to take advantage of the new MIME type validation features and improved preview functionality. The upgrade should be straightforward with no breaking changes.

Bug Fixes

No specific bug fixes were included in this release.

New Features

MIME Type Validation for Uploads

PayloadCMS now supports MIME type validation for file uploads, allowing developers to restrict which file types can be uploaded to their CMS. This feature enhances security by preventing potentially malicious files from being uploaded.

Locale Support in Preview Functions

Preview functions now have access to the current locale, making it easier to create internationalized previews. This is particularly useful for multi-language sites where content needs to be previewed in different languages.

Disabled User Scalability on Mobile

The admin UI now disables user scalability on mobile devices, providing a more controlled viewing experience. This prevents accidental zooming and improves the overall mobile experience.

Restricted MIME Types in File Picker

The file picker component now supports MIME type restrictions, allowing developers to limit which file types can be selected. This provides better control over the types of files that can be used in different contexts.

Security Updates

While not explicitly labeled as security fixes, the addition of MIME type validation for uploads and restrictions in the file picker component significantly improves security by preventing potentially malicious files from being uploaded or selected.

Performance Improvements

No specific performance improvements were mentioned in this release.

Impact Summary

PayloadCMS v0.6.8 focuses on enhancing security and developer experience with MIME type validation for file uploads and improved preview functionality. The addition of locale support in preview functions makes it easier to create internationalized previews, while the MIME type restrictions in uploads and file picker provide better control over which files can be used. The disabled user scalability on mobile improves the admin UI experience on mobile devices. These changes primarily benefit developers building with PayloadCMS and content editors working with the system, particularly those working on multi-language sites or with strict file upload requirements.

Full Release Notes

0.6.8 (2021-05-12)

Features

  • add mimeTypes validation for uploads (a5fcdf0)
  • disables user scalable in mobile (#177) (46c1a36)
  • exposes locale within preview function (2d67448)
  • restrict upload mime types in file picker (1c6f32f)

Statistics:

File Changed24
Line Additions190
Line Deletions40
Line Changes230
Total Commits8

User Affected:

  • Can now access locale data within preview functions for better internationalization support
  • Have more control over file uploads with MIME type validation
  • Can provide better mobile experiences with disabled user scalability

Contributors:

jmikrutPatrikKozakdenolfeDanRibbens