Thanks Michael and Ken, Basically what Ken Marcus said: Find out where $row[file] points to. Most likely that is outside the allowed path. Will check but my understanding is that it is using the same path to write the file. Regards Colin