3
I am in need of a help to resize the image I received by uploading the user, you have any suggestions?
Model:
public HttpPostedFileBase TypeImageFile1 { get; set; }
View:
<div class="fileUpload btn btn-primary">
<span>Upload</span>
<input class="upload" id="TypeImageFile1" name="TypeImageFile1" type="file">
</div>
Thanks Gypsy for the quick answer, but I was left with a doubt about how the model should be: on this line Oce puts a file if (meuModel.Typeimagefile1 != null && meuModel.File.Typeimagefile1 > 0) that got a little confused.
– user1631012
Yes, I pasted something wrong. I updated the answer.
– Leonel Sanches da Silva