I believe it is not possible to change the actual filename from python client. While changing the synapse name of the file works. I also don't understand why we have two nomenclature in the first place. I believe a file should only have one name.
Current approach for file name override needs better documention.
Added "Changing File Names" section to the docs for File entities, which tries to explain how fileNameOverride works.
A user wants to know how to set the filename on upload. Could this be added to the documentation?
Right now, the Python Synapse client let's you set the name that will be displayed in Synapse. But, that's separate from the filename that's stored in S3 and therefore also the name of the file when you download it.
We don't have a feature to set the filename on upload. It looks like it would be possible to implement an "uploadAs" parameter, which might work something like this:
syn.store(File("/path/to/actual/file.xyz", parentId="syn123456", uploadAs="newname.xyz"))
Maybe we could repurpose for this feature?
This should be fixed using the filehandle copy service and then be documented.