From 74a6fddb67ed203e42733a64a9178df64334dda9 Mon Sep 17 00:00:00 2001 From: Jorge Date: Fri, 4 Jan 2019 16:59:49 +0000 Subject: [PATCH] Don't send title during mediaUploads. Fix: Image Uploads don't retrieve the title from exif metadata. --- packages/editor/src/utils/media-upload/media-upload.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/editor/src/utils/media-upload/media-upload.js b/packages/editor/src/utils/media-upload/media-upload.js index 47486bc5671e47..3cba5212f62712 100644 --- a/packages/editor/src/utils/media-upload/media-upload.js +++ b/packages/editor/src/utils/media-upload/media-upload.js @@ -210,7 +210,6 @@ function createMediaFromFile( file, additionalData ) { // Create upload payload const data = new window.FormData(); data.append( 'file', file, file.name || file.type.replace( '/', '.' ) ); - data.append( 'title', file.name ? file.name.replace( /\.[^.]+$/, '' ) : file.type.replace( '/', '.' ) ); forEach( additionalData, ( ( value, key ) => data.append( key, value ) ) ); return apiFetch( { path: '/wp/v2/media',