Skip to content

Instantly share code, notes, and snippets.

Bailey Miller BaileyMillerSSI

Block or report user

Report or block BaileyMillerSSI

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View S3StreamResponse.cs
public class S3StreamResponse : S3Response
{
public Stream FileStream { get; set; }
public String FileName { get; set; }
public String Content_Type { get; set; }
public long Content_Length { get; set; }
public DateTime LastModified { get; set; }
}
View controller.cs
[HttpPost("{bucketName}"), DisableRequestSizeLimit]
public async Task<IActionResult> UploadFile([FromRoute]string bucketName)
{
var file = Request.Form.Files[0];
var response = await _service.UploadFileAsync(bucketName, file);
if (response.Status == System.Net.HttpStatusCode.OK)
{
return Ok(response);
You can’t perform that action at this time.