This question is locked. New answers and comments are not allowed.
Hello,
I upload a file and after the call to the server, I have a small JavaScript that update Model.ImageName on client side.
But when I Upload again, Model.Image always keep the fisrt value (in .Save... new...).
I change the new with this new { strImageName = Model.ImageName, test = System.DateTime.Now } to see if the time change but it's keep the first value when I upload for the first time. Any idea will be VERY APPRECIATE.
I upload a file and after the call to the server, I have a small JavaScript that update Model.ImageName on client side.
But when I Upload again, Model.Image always keep the fisrt value (in .Save... new...).
I change the new with this new { strImageName = Model.ImageName, test = System.DateTime.Now } to see if the time change but it's keep the first value when I upload for the first time. Any idea will be VERY APPRECIATE.
@(Html.Telerik().Upload().Name("attachments").Multiple(false).ShowFileList(false) .Async(async => async .Save("Save", "Description", new { strImageName = Model.ImageName }) .AutoUpload(true)) .ClientEvents(events => events.OnSuccess("onSuccess") .OnUpload("onUpload")) )