Jump to content

Rename an uploaded file


This topic is 3014 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I am working with a document repository that has existed for a while, however I now have the need to be able to rename an already uploaded file.  I figured I'd be able to do this either by calling scMove or scCopy and specifying a new filename parameter while leaving the filePath the same, but unfortunately I've had no luck so far.  Is there an easier way to rename an uploaded file or am I going to need to go down the road of 'download file -> remove file from server -> re-upload file with new file name to old folder path'?

Link to comment
Share on other sites

  • 2 weeks later...

Hi James, 

There is not a function that explicitly renames the already uploaded file. You will not need to download,delete,and then re-upload if you already have the file locally. You can use SCSetContainer with the renamed file and push it to the server to the same location as the preexisting file and it will overwrite it. If you do not already have the file locally then you will need to download, rename, and the upload to the same location, overwriting the preexisting file.

Link to comment
Share on other sites

This topic is 3014 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.