Skip to content

Commit

Permalink
Don't send title during mediaUploads. Fix: Image Uploads don't retrie…
Browse files Browse the repository at this point in the history
…ve the title from exif metadata. (#13193)
  • Loading branch information
jorgefilipecosta authored and youknowriad committed Mar 6, 2019
1 parent 5ad3942 commit d1e457b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/editor/src/utils/media-upload/media-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d1e457b

Please sign in to comment.