Added code for attach files