Compare commits
7 Commits
059c0603d4
...
v0.0.1-alp
| Author | SHA1 | Date | |
|---|---|---|---|
| 4121a98ffd | |||
| d5b56efdd7 | |||
| 4c9c001d62 | |||
| d0d9fcc304 | |||
| 1a25de254f | |||
| 7eaf8e88d8 | |||
| a6e3f78f43 |
@@ -99,7 +99,7 @@
|
||||
|
||||
<div name="Enity-Container-Image" class="">
|
||||
<a href="javascript:void(0)" class="Entity-Container-Image">
|
||||
<img src="@Entity.PicturePath" alt="" class="Entity-Container-Image" />
|
||||
<img src="/@Entity.PicturePath" alt="" class="Entity-Container-Image" />
|
||||
</a>
|
||||
</div>
|
||||
<div name="Entity-Container-Data" class="">
|
||||
@@ -224,7 +224,7 @@
|
||||
}
|
||||
|
||||
//Save Picture and Name it
|
||||
string NewFileName = $"{GlobalEntity.Title.Replace(" ", "_")}_{Guid.NewGuid()}{Path.GetExtension(Picture.Name)}";
|
||||
string NewFileName = $"{GlobalEntity.Title.Replace(" ", "-")}-{Guid.NewGuid()}{Path.GetExtension(Picture.Name)}";
|
||||
string PicturePath = Path.Combine("wwwroot", "Pictures", NewFileName);
|
||||
using FileStream FileStream = File.Create(PicturePath);
|
||||
await Picture.OpenReadStream().CopyToAsync(FileStream);
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<div class="col-auto img-wrapper">
|
||||
@if (!string.IsNullOrEmpty(Entity.GlobalEntity?.PicturePath))
|
||||
{
|
||||
<img src="@Entity.GlobalEntity.PicturePath"
|
||||
<img src="/@Entity.GlobalEntity.PicturePath"
|
||||
class="entity-img"
|
||||
alt="@Entity.GlobalEntity.Title">
|
||||
}
|
||||
|
||||
@@ -50,6 +50,7 @@ else
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
|
||||
app.UseStaticFiles();
|
||||
|
||||
app.UseAntiforgery();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user