File upload and hot reload

I've been plagued with this issue for a while when running in Radzen Blazor Studio, I have a file upload component on a form.

When the file upload completes I get:

dotnet watch :watch: File added: .\wwwroot\Attachments\1.xlsx
dotnet watch :fire: Hot Reload of static files succeeded.
dotnet watch :watch: No hot reload changes to apply.

Then the page reloads which is a pain.

I have tried adding to the project.csproj:

  <ItemGroup>
	<Watch Remove="wwwroot/Attachments/**" />
  </ItemGroup>

I've also tried the environment variable: $env:DOTNET_WATCH_EXCLUDE="wwwroot/Attachments/**"

When I run the project on Visual studio it does not exhibit this behavior. Is there a solution?

Here is the official dotnet documentation about excluding files from dotnet watch: Develop ASP.NET Core apps using a file watcher | Microsoft Learn