create attachment dir earlier