silverstripe/mimevalidator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

silverstripe/mimevalidator

最新稳定版本:4.0.0

Composer 安装命令:

composer require silverstripe/mimevalidator

包简介

Checks uploaded file content roughly matches a known MIME type for the file extension.

README 文档

README

CI Silverstripe supported module

Installation

composer require silverstripe/mimevalidator

Introduction

Checks uploaded file content roughly matches a known MIME type for the file extension.

It can be used with FileField or any subclasses like UploadField.

For example, it will fail validation if someone renames a .exe file to .jpg and attempts to upload the file.

Installation via Composer

Install with composer by running composer require silverstripe/mimevalidator in the root of your Silverstripe project.

Silverstripe CMS Recipe 4.6 and above include this module via silverstripe/recipe-core. Therefore, it is unnecessary to directly install this module if your project has been upgraded to, or was created with CMS Recipe 4.6.0 or later.

Configuration

Read Allowed file types on the Silverstripe CMS documentation for details on configuring MIME type validation.

统计信息

  • 总下载量: 1.93M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 1
  • 依赖项目数: 11
  • 推荐数: 2

GitHub 信息

  • Stars: 10
  • Watchers: 13
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-08-01