Skip to content

Commit

Permalink
@uppy/compressor: fix upload causing meta name to reset (#3890)
Browse files Browse the repository at this point in the history
Fix @uppy/compressor resetting meta name
  • Loading branch information
mellow-fellow authored Jul 27, 2022
1 parent f808e9d commit 2b435bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@uppy/compressor/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class Compressor extends BasePlugin {
size,
data: compressedBlob,
})
this.uppy.setFileMeta(file.id, { name, type })
this.uppy.setFileMeta(file.id, { type })
compressedFiles.push(file)
} catch (err) {
this.uppy.log(`[Image Compressor] Failed to compress ${file.id}:`, 'warning')
Expand Down

0 comments on commit 2b435bd

Please sign in to comment.