File extension not validated when uploading translation file via web

Description

When we update translation for any project version , it allows us to upload any type of file and it gives unexcepted error after upload, it should be handled correctly while uploding

Steps to Reproduce:

  • Login to zanata.

  • Go to dashboard.

  • Select project - > version

  • Select language and if there is already document there

  • click on down arrow to update the translation

  • Select any file

  • observe the behavior

Actual Result:

  • Unexpected error while update translation file

Expected Result:

  • file validation should be handed while update translation

Note:

  • Attached screen captured for more info

Environment

None

Status

Assignee

Unassigned

Reporter

Sachin Pathare

Labels

None

Tested Version/s

None

Affects versions

Priority

unspecified
Configure