check if file exists (attachment)