Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Conversation

@kichalla
Copy link
Member

@dnfclas
Copy link

dnfclas commented Apr 27, 2016

Hi @kichalla, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

<RootNamespace>Microsoft.Extensions.Configuration.ConfigFile</RootNamespace>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">..\..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">..\..\artifacts\</OutputPath>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was changed by the latest (the last recommended) tooling. I will revert it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't fight the tools. It's going to do this every time you open the solution

@kichalla kichalla force-pushed the kiran/restrictive-fileupload branch 2 times, most recently from 6897551 to 3ba719f Compare May 18, 2016 16:59
@kichalla kichalla changed the title [Design] Added new sample Mvc.RestrictiveFileUpload Added new sample Mvc.RestrictiveFileUpload May 18, 2016
@kichalla kichalla changed the title Added new sample Mvc.RestrictiveFileUpload Added new sample Mvc.FileUpload May 18, 2016
@kichalla kichalla force-pushed the kiran/restrictive-fileupload branch 2 times, most recently from 35eb045 to 0eda7e9 Compare May 19, 2016 18:57
@kichalla
Copy link
Member Author

🆙 📅
There are 2 scenarios demonstrated in the sample. One for showing setting request form size limits on a granular basis (ex: at per-action level) and other one related to file upload.

"LogLevel": {
"Default": "Debug",
"System": "Information",
"Microsoft": "Debug"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will revert to the default Information level

@kichalla
Copy link
Member Author

🆙 📅

@Tratcher
Copy link
Member

👍

//await cloudBlockBlob.UploadFromStreamAsync(section.Body);

//targetFilePath = blobId;
//_logger.LogInformation($"Copied the uploaded file '{fileName}' to blob with id '{blobId}'.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there's any value to having this code here. This just bloats the sample - if we need to provide a sample for blob storage let's do that separately.

@rynowak
Copy link
Member

rynowak commented May 24, 2016

Looks like https://github.com/aspnet/Entropy/pull/123/files#r64093232 still needs to be addressed

other than that :shipit: from me


// Get the default form options so that we can use them to set the default limits for
// request body data
private static readonly FormOptions _defaultFormOptions = new FormOptions();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you newing this up?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this sample request form is being parsed manually (in the sense that MultipartReader is being used to read individual parts and handled) compared to depending on FormFeature. Most of the code here is borrowed from FormFeature and I wanted to use the default limits here too.

@kichalla kichalla force-pushed the kiran/restrictive-fileupload branch from 5cd75de to 6b74a20 Compare May 25, 2016 17:26
@kichalla
Copy link
Member Author

🆙 📅 @Tratcher I updated the PR with appwide FormOptions settings

@Tratcher
Copy link
Member

:shipit:

@kichalla
Copy link
Member Author

@kichalla kichalla closed this May 25, 2016
@kichalla kichalla deleted the kiran/restrictive-fileupload branch August 4, 2016 19:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.