I am using VS 2008 with .NET 3.5 and after I put the control on the page and let it import it's ig_ui folder I added the following headers.
<link type="text/css" href="ig_ui/themes/ig/jquery.ui.custom.min.css" rel="stylesheet" /> <link type="text/css" href="ig_ui/themes/base/ig.ui.min.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.6.1.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.13/jquery-ui.min.js"></script> <script type="text/javascript" src="ig_ui/js/min/ig.ui.min.js"></script>
I also tried using the Microsoft CDN for jQuery and jQueryUI. Then end result is that the page opens up and control looks good and brings up the find file dialog as expected but it never actually uploads the file. The progress bar opens, blinks a bit and then goes away. No file is to be found in the destination folder. The Uploaded events don't fire client or server side.
I added the modules and handlers shown in the help site and documentation but the behavior was exactly the same. It doesn't throw any exceptions so I can't even figure out where to start looking.
<modules> <remove name="ScriptModule"/> <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="IGUploadModule" type="Infragistics.Web.UI.EditorControls.UploadModule" preCondition="managedHandler" /> </modules> <handlers> <remove name="WebServiceHandlerFactory-Integrated"/> <remove name="ScriptHandlerFactory"/> <remove name="ScriptHandlerFactoryAppServices"/> <remove name="ScriptResource"/> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="IGUploadStatusHandler" path="IGUploadStatusHandler.ashx" verb="*" type="Infragistics.Web.UI.EditorControls.UploadStatusHandler" preCondition="integratedMode" /> </handlers> </system.webServer>
Any help at all would be greatly appreciated.
Hi Christian,
The property UploadUrl is related with the client side code of WebUpload(the jQuery widget). UploadUrl is for advanced use and in almost all of the cases you wil not need to change it. This property is for configuring the path where upload requests are made from the client side.
Best Regards,
Miro Hristov
Hi Miro,thank you for your advice.
Does your posting mean that the property "UpLoadUrl" cannot be set at runtime? If so, this property seams to be useless.
Ok, the control does not support streams. I will have to read the tempfile into my own stream.
Thank you very much
Christian
You can set the upload path in the web.config. This is the temporary folder where it is saved files(please specify it in the web.config) - then you can attach to event UploadFinishing(as I see you have done this) and there you can do anything you want with the temporary file(which is already uploaded but not renamed to its original filename). First you should cancel the event and then you can remove the file/ move to another folder, etc. Canceling is made in this way:
e.Cancel = True
About the feature with saving file as a stream- for now there is no such option. In future we will implement it.
Regards,
Hi MIro,
I found the problem:
If I use the default uploadpath, I do not set the UploadUrl property the upload works fine.
I would like webupload does not save the file anywehre in the filesystem. I want th file as stream, How would I accomplish this?
Thanks
Sorry Miro, but I'm working on a ASP.NET ProjectI attach a small project, which shows the mentioned error.The only missing file is "ig.ui.min.js" but I think you will have your own one.BTW the upload size is limited to 200 KB which is very poor, soory
Thanks for your help
Regards