Rajout du dossier core + MAJ .gitignore
This commit is contained in:
51
core/lib/Thelia/Files/FileConfiguration.php
Normal file
51
core/lib/Thelia/Files/FileConfiguration.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace Thelia\Files;
|
||||
|
||||
/**
|
||||
* Class FileConfiguration
|
||||
* @package Thelia\Files
|
||||
* @author manuel raynaud <manu@raynaud.io>
|
||||
*/
|
||||
class FileConfiguration
|
||||
{
|
||||
public static function getImageConfig()
|
||||
{
|
||||
return [
|
||||
'objectType' => 'image',
|
||||
'validMimeTypes' => [
|
||||
'image/jpeg' => ["jpg", "jpeg"],
|
||||
'image/png' => ["png"],
|
||||
'image/gif' => ["gif"],
|
||||
],
|
||||
'extBlackList' => []
|
||||
];
|
||||
}
|
||||
|
||||
public static function getDocumentConfig()
|
||||
{
|
||||
return [
|
||||
'objectType' => 'document',
|
||||
'validMimeTypes' => [],
|
||||
'extBlackList' => [
|
||||
"php",
|
||||
"php3",
|
||||
"php4",
|
||||
"php5",
|
||||
"php6",
|
||||
"asp",
|
||||
"aspx",
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user