Changes to support Upload of PDF and Document Create

Changes contributed by:  Taras Leshko