attach in webroot fix

Fixed issue if attachment is uploaded from the website root folder