Two ways to do that:
1.Using application wise settings - in the > configure services method.
services.Configure(options =>
{
options.MultipartBodyLengthLimit = 52428800;
});
2.Using RequestFormSizeLimit attribute - for specific actions. - It is not yet available in official package
Unofficial