//TODO: Deviner le mime-type
        /// <summary>
        /// Upload an attachment to the managed story. The developper write into the stream
        /// WARNING: This feature is disabled temporarily due to PCL support. Calling this method will cause NIE.
        /// </summary>
        /// <param name="action">Action that accepts the story and the upload stream</param>
        /// <param name="fileName">attachment filename in Pivotal</param>
        /// <param name="contentType">data content-type </param>
        /// <returns>This</returns>
        public StoryFacade <TParent> UploadAttachment(Action <Story, Stream> action, string fileName = "upload", string contentType = "application/octet-stream")
        {
            using (var stream = new MemoryStream())
            {
                action(this.Item, stream);
                _attachRepository.UploadAttachment(this.Item.ProjectId, this.Item.Id, stream.ToArray(), fileName, contentType);

                return(this);
            }
        }