Skip to main content
1-Visitor
August 19, 2014
Question

rename file after upload

  • August 19, 2014
  • 3 replies
  • 1307 views

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

    5-Regular Member
    August 19, 2014

    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.



    davidcor1-VisitorAuthor
    1-Visitor
    August 19, 2014

    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.



    davidcor1-VisitorAuthor
    1-Visitor
    September 4, 2014

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