Skip to content

Commit

Permalink
Merge pull request #816 from c2corg/fix-iptc-bug
Browse files Browse the repository at this point in the history
Fix image upload #813
  • Loading branch information
cbeauchesne authored Oct 16, 2019
2 parents 2d80c79 + 5a40eb9 commit 9975e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/upload-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const uploadFile = function(file, onDataUrlReady, onUploadProgress, onSuccess, o

const parseMetaData = function(metaData) {
const exif = metaData.exif ? metaData.exif.getAll() : null;
const iptc = metaData.exif ? metaData.iptc.getAll() : null;
const iptc = metaData.iptc ? metaData.iptc.getAll() : null;
let orientation = 0;

setIfDefined(document, 'date_time', parseDate(exif, iptc));
Expand Down

0 comments on commit 9975e22

Please sign in to comment.