first pass at file upload thru addmedia.js