private fun initResumableMediaRequest( request: GDataRequest, file: MediaFileSource, title: String ) { initMediaRequest(request, title) request.setHeader(GDataProtocol.Header.X_UPLOAD_CONTENT_TYPE, file.getContentType()) request.setHeader( GDataProtocol.Header.X_UPLOAD_CONTENT_LENGTH, file.getContentLength().toString() ) }
Initialize a resumable media upload request .