Added function to attach file to article