Project

General

Profile

Actions

Defect #1873

closed

Upload profile picture with upper case extension doesn't work

Added by Ondřej Kopr over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Low
Assignee:
Radek Tomiška
Category:
Profile
Target version:
Start date:
09/24/2019
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Please could you check and validate file extension? Now isn't possible upload file with JpG, JPG, ...

Affected version: probably all from #1028


Related issues

Related to IdStory Identity Manager - Feature #1028: 1) upload and display image / delete imageClosedRadek Tomiška03/13/2018

Actions
Actions #1

Updated by Ondřej Kopr over 5 years ago

  • Related to Feature #1028: 1) upload and display image / delete image added
Actions #2

Updated by Ondřej Kopr over 5 years ago

Hint from @tomiskar

if (!file.name.endsWith('.jpg') && !file.name.endsWith('.jpeg') && !file.name.endsWith('.png') && !file.name.endsWith('.gif'))

IdentityDetail.js :slightly_smiling_face:
Actions #4

Updated by Radek Tomiška over 5 years ago

  • Status changed from New to Needs feedback
  • Assignee changed from Radek Tomiška to Ondřej Kopr
  • % Done changed from 0 to 90

I've added lower case to "naive" frontend extension validation, commit:
https://github.com/bcvsolutions/CzechIdMng/commit/bd8243e13e381644043008150aad298767de9360

Could you do a feedback, please?

Actions #5

Updated by Vít Švanda about 5 years ago

  • Assignee changed from Ondřej Kopr to Vít Švanda
Actions #6

Updated by Vít Švanda about 5 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Vít Švanda to Radek Tomiška
  • % Done changed from 90 to 100

I did test and review. Works. Now I can uplad images with extension JPG and jPg too :-). Thanks for that.

Actions #7

Updated by Radek Tomiška about 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF