change actual file name from python client

Description

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.

-Abhi

Environment

None

Activity

Show:
Mike Kellen
January 22, 2016, 9:26 PM

Current approach for file name override needs better documention.

Chris Bare
January 23, 2016, 12:10 AM

Added "Changing File Names" section to the docs for File entities, which tries to explain how fileNameOverride works.

Kristen Dang
April 20, 2016, 4:45 PM

A user wants to know how to set the filename on upload. Could this be added to the documentation?

Larsson Omberg
April 20, 2016, 8:50 PM

Chris Says:

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?

Larsson Omberg
October 17, 2016, 11:05 PM

This should be fixed using the filehandle copy service and then be documented.

Assignee

Chris Bare

Reporter

Abhishek Pratap

Labels

None

Validator

Abhishek Pratap

Development Area

None

Release Version History

None

Components

Fix versions

Priority

Major
Configure