NR-956: user can't directly attach a media file that has been once deattached

Fixed.
Merge pull request #84 from eozan/NR-956

NR-956: user can't directly attach a media file that has been once deatt...