change comment

This commit is contained in:
Marc-Roig 2022-09-20 15:24:51 +02:00
parent 60ac7848e1
commit dbd85eef4f

View File

@ -243,10 +243,8 @@ module.exports = ({ strapi }) => ({
*/
async uploadFileAndPersist(fileData, { user } = {}) {
const config = strapi.config.get('plugin.upload');
const { isImage } = getService('image-manipulation');
// Validate image size
await getService('provider').checkFileSize(fileData);
if (await isImage(fileData)) {