This is a migrated thread and some comments may be shown as answers.

[Solved] Upload control not posting to the Save method

0 Answers 85 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sanjay
Top achievements
Rank 1
Sanjay asked on 04 Aug 2011, 10:03 AM
Hi,
I am using the Upload control to upload images and have used the following code in the cshtm file

@(Html.Telerik().Upload()

.Name(

 

"Uploader")

 

.Async(async => async

.Save(

 

"Save", "Category")

.Remove(

"Remove", "Category")

.AutoUpload(true)

 

 

 

)

)

And have used a action method with the follwoing sign in the controller
public ActionResult Save(IEnumerable<HttpPostedFileBase> Uploader)

The issue is that even after setting everything right I am unable to pass the control to the 'Save' action method when the file has been selected. It just immediately shows the image filename instead of uploading the file.
Please suggest some remedy to this issue.


Tags
Upload
Asked by
Sanjay
Top achievements
Rank 1
Share this question
or