Uppy and stream-media-id

Hi

Im using Uppy Tus with the Worker script found here and its working great.

Any idea how I can get the stream-media-id to a variable? The value is in the header, I just don’t know how to get uppy to extract it. I’m just using the basic Uppy sample code.

<script>
      var uppy = Uppy.Core()
        .use(Uppy.Dashboard, {
          inline: true,
          target: '#drag-drop-area'
        })
        .use(Uppy.Tus, {
		
		endpoint: 'https://<replaced>.workers.dev/',
        })
      uppy.on('complete', (result) => {
        console.log('Upload complete! We’ve uploaded these files:', result.successful)
      })
    </script>

did you find the solution?