Uploading a .pot file via Web UI retains the extension

Description

Uploading a .pot gettext file via the ui results in a "myfile.pot" document in the project. This differs to the client upload in that the extension is stripped.
This results in being unable to upload translations to the project, with the message
[ERROR] Operation failed: Failed while pushing document translations: [A document was not found.]

1. Go to a project, and create a version that is gettext
2. In Settings, Documents -> click + and upload the .pot file
3. Download the project config via the dropdown and move it to a test folder
4. In said folder, do

Actual:

Environment

None

Status

Assignee

Alex Eng

Reporter

Damian Jansen

Labels

Tested Version/s

None

Components

Sprint

None

Fix versions

Affects versions

Priority

High
Configure