This commit is contained in:
mmrbnjd
2024-10-15 15:51:06 +03:30
parent fb4e9b5bd5
commit fc0b5dfb6c
2 changed files with 5 additions and 5 deletions

View File

@@ -164,17 +164,15 @@
}
private async Task<List<OrderItemDto>> LoadOrderItem()
{
SpinnerVisible = true;
var rsp = await hc.Get($"Orders/GetOrderDetails/{order.ID}");
if (rsp.IsSuccessStatusCode)
{
SpinnerVisible = false;
return await rsp.Content.ReadFromJsonAsync<List<OrderItemDto>?>();
}
else
{
SpinnerVisible = false;
ShowDangerAlert("خطایی در بارگیری");
return new List<OrderItemDto>();
}

View File

@@ -43,7 +43,7 @@
<InputFile OnChange="changePic" type="file" id="upload" class="account-file-input" hidden="" accept="image/png, image/jpeg"/>
</label>
<p class="text-muted mb-0">JPG، GIF یا PNG مجاز است. حداکثر اندازه @maxFileSize هزار</p>
<p class="text-muted mb-0">JPG، GIF یا PNG مجاز است. حداکثر اندازه 3 megabyte</p>
</div>
</div>
</div>
@@ -129,7 +129,9 @@
public string from { get; set; } = "";
public string _src { get; set; }
private long maxFileSize = 1024 * 15;
//3m
private long maxFileSize = 3145710;
[SupplyParameterFromForm]
public ChangePasswordDto changepassModel { get; set; }
[SupplyParameterFromForm]