We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27738
    • 2 Posts
    Hi All,

    I’m using FileUpload which is working fine, but I want to dynamicaly create a folder named the same as the logged in users id. If I hard code the path into the snippet parameter it works fine:
    [[!FileUpload?
        &uploadfields = `1` 
        &createpath = `Yes`
        &path=`assets/uploads/43/`   
    ]]
    


    To do it dynamically I tried testing it, before trying @EVAL in the TV, with a text TV hard coded with the path - ’assets/uploads/43/’:
    [[!FileUpload?
        &uploadfields = `1` 
        &createpath = `Yes`
        &uploadtv = `ImageUpLoadTV`   
    ]]
    

    It doesn’t appear to be passing the value of the TV. I’ve tried "assets/uploads/43/" and ’assets/uploads/43/’ and assets/uploads/43/ as the TV value but still ignores the assinged value and uploads to the root directory.

    File upload seems to be working fine I suspect the problem is with how I’ve set up my TV - either that or its the damn coding goblins again rolleyes

    Any advice greatfully recieved.

    Thanks in advance smiley