changing uploader to include file/fog logic