James Gill Posted November 25, 2015 Posted November 25, 2015 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'?
ryan360Works Posted December 4, 2015 Posted December 4, 2015 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.
Recommended Posts
This topic is 3333 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 accountSign in
Already have an account? Sign in here.
Sign In Now