Content deleted Content added
. |
. |
||
Line 639:
var impliedTitleMime = mimeLookup[titleExtension] || '';
return fileMime === impliedTitleMime;
};
Line 656 ⟶ 650:
// check file mime matches title mime
var titleHasCorrectExtension = self.checkMimes();
if (!titleHasCorrectExtension && self.resizedFile
self.titleInputField.setErrors(['Unexpected file extension']);
}
Line 671 ⟶ 659:
!!self.resizedFile &&
!!self.titleInput.getValue().length &&
titleHasCorrectExtension
!!self.developerInput.getValue().length &&
!!self.publisherInput.getValue().length; self.actions.setAbilities({
upload: requirementsMet
Line 678 ⟶ 667:
},
function() {
this.titleInputField.setErrors(['Invalid file name']);
self.actions.setAbilities({
upload: false
|