file attachments/uploads assumes always in root namespace

I found this issue recently where we are setting different namespaces to organize our files a little better. the result would be 3 seperate broken attachments from one file.  

Setting the \ fixes it for us.