Skip to main content
1-Visitor
Aug 19, 2014 7:53 PM UTC
Question

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

    5-Regular Member
    Aug 19, 2014 8:39 PM UTC

    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.



    Translate
    davidcor1-VisitorAuthor
    1-Visitor
    Aug 19, 2014 8:51 PM UTC

    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.



    Translate
    davidcor1-VisitorAuthor
    1-Visitor
    Sep 4, 2014 12:10 AM UTC

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



    Translate