SlickUpload 与asp:FileUpload 不冲突方法
12/15/2010 2:47:23 PM
由于网站使用SlickUpload,fileupload.hasfile 总是为false。以下是解决方法:
相关配置:基本配置参考相关文章
以下设置确认:
<slickUpload>
<uploadParser handleRequests="false">
<uploadStreamProvider location="~/mediaitems/" provider="File" fileNameMethod="Custom" fileNameGenerator="UploadedPathFilenameGenerator" existingAction="Rename" />
</slickUpload>
在</configuration> 标签添加以下配置信息;
<location path="SlickUpload.axd">
<slickUpload>
<uploadParser handleRequests="true" />
</slickUpload>
<system.web>
<httpRuntime maxRequestLength="1048576" executionTimeout="300"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2072576000"/>
</requestFiltering>
</security>
</system.webServer>
</location>
如需了解更多信息:请到官方网站取阅