Fixed a bug where creating a new file from uploading would fail with a custom file name.
Fixed a bug where adding/removing locales would be lost when uploading.