cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

rename file after upload

davidcor
1-Newbie

rename file after upload

I'm trying to rename a file (for consistency) after uploading to a FileRepository be calling the FileRename service after UploadComplete. I am trying to pass the FileName property of the upload widget to the path parameter of the FileRename service. However, I get an error in the app log saying "no path specified." 

Is there a way to pass the name of the uploaded file to the renamefile service?

3 REPLIES 3
Aanjan
9-Granite
(To:davidcor)

Hi David,

Use the

FullPath

property of the

Upload Widget

instead of FileName, as the path parameter of

RenameFile

would expect to get a path input.



I tried that as well and still get the same error. It appears to be a permissions error.  It works fine if I am logged into the mashup as an administrator.



Still looking for an answer to this issue. Any help is appreciated



Top Tags