Last active
December 31, 2015 23:29
-
-
Save Boztown/8060766 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (model.ThumbnailFile != null) | |
{ | |
var thumbGUID = Guid.NewGuid(); | |
var newFilename = thumbGUID + ".jpg"; | |
// save thumbnail | |
model.ThumbnailFile.SaveAs(imageUploadPath + "/" + newFilename); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="/live/collection/edit" enctype="multipart/form-data" method="post"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="file" name="ThumbnailFile" id="ThumbnailFile" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using (Html.BeginForm("editaudio", "multimedia", FormMethod.Post, new {enctype = "multipart/form-data"})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment