media upload issue #2

issue #2 , untested - complete?