Hello everybody,
First thing is that I want to compliment you guys for the great control. We recently had some problems with uploading large files (>30Mb) on a project (never had any requests from people to upload anything more than a couple of Mb, which works with many controls) and we needed to look for another control than the one we were using before. So I picked up several controls and tested them all from our remote testing server running ASP.NET on II7 in different browsers. In the end your control came up best in my test, for two reasons:
- it worked in all browsers (including wicked IE) without any problems (tested the MVC example) with my 30Mb testing .zip file
- it eliminated dependency on having Flash installed (many other controls use SWFUpload)
With that, I decided to use it on our project and there came problems.
First, I decided to use the code from MVC C# example, copied the page code and put it in my MVC view page, put the dll in as a reference, added slickUpload section, handlers and modules in web.config, set up a method in my controller. Then fired it up and noticed in Firebug that the the control renders one wicked iFrame element that probably somehow handles the upload or something. The problem may be that the method in MVC controller receives one parameter, it actually looks like this:
[Authorize]
public ActionResult CourseUpload(Guid? id)
{
Course course = null;
CourseViewModel model = new CourseViewModel();
if (id.HasValue && id.Value != Guid.Empty)
course = this.ActivityService.GetActivityCourse(id.Value);
if (course == null)
return View();
model = this.Mapper.Map<Course, CourseViewModel>(course);
return View(model);
}
Mentioned iFrame is not aware of this parameter and it reaches this methout without it, so this may be one of the problems.
When I select the file and hit Upload button it shows that it is trying to upload it, shows info about the file, but progress bar stays on 0% and Firebug shows that the response from constant GET requests to slickupload.axd is the following:
state : "ReceivingData",reason : "NotTerminated",percentComplete : 0.00,percentCompleteText : "0.00 %",contentLengthText : "93.3 KB",transferredLengthText : "0 bytes",remainingLengthText : "93.3 KB",currentFileName : "",currentFileIndex : "0",timeElapsedText : "12 seconds",timeElapsedShortText : "00:12"
and upload fails with timeout message. Does anybody have any idea what am I doing wrong?
Thanks.
Dragan B.