I hope this answer helps you get on the right track.
Few options to resolve your problem come to my mind:
1. Completely abandon .NET Framework
Change project using .NET Framework 4.7.2 to use .NET Standard if that is possible and rewrite method in question completlty abandoning .NET Standard. This is in some ways easier options and I advise you to take it if possible.
2. Target both .NET Standard and .NET Framework
If this is not possible, because of some issues e.g. project is used in other solutions that cannot target .NET Standardyou can make this project target both platforms.
You can do second option through VisualStudio or directly in csproj file editing TargetFramework attribute in newer csproj format (I strongly advise you to migrate project to new format with some wizard). Then you should add condition on ItemGroup in csproj to only include System.Web if you are using .NET Framework 4.7.2 and .NET Standard counterpart if using .NET Standard. Then write the method in question again using .NET Standard, but do not delete the old one. Instead you should make compiler choose the right one with #if compiler instructions.
Below you can find examples with new csproj format. If you use old one you can use e.g THIS WIZARD to automatically migrate.
<TargetFramework>net472</TargetFramework>
Should be changed to (mind s):
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
And then to include System.Web only when using net472:
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' ">
<Reference Include="System.Web" />
</ItemGroup>
And later the same for .NET Standard.
Last part should be done in C# code itself:
#if NETFRAMEWORK
... method using **HttpPostedFileBase** ...
#elif NETSTANDARD
... its .NET Standard counterpart ...
#endif
Constants used above - NETSTANDARD and NETFRAMEWORK are wildcards for more specific version of mentioned platforms. You can find them all HERE
You might be forced to do similar things with callers of method in question.
If those things do not help you might want to check assembly binding redirects if you have any as this issue I did post about might not be the only one there is.
Good luck, I hope my answer helps in any way.