Brilliant thanks, this gave me exactly what I wanted. Although the path it returned contained a ‘//’ but a str_replace fixed this.
I also want to now allow multiple file uploads on a single input field. Can this be achieve with CF7 out of the box?
Thanks.