Hello,
I'm new to Infragistics Web library and i want to use the WebUpload-Control in my ASP.NET-WebApp. As i saw, the file upload path will be set in the web.config-settings. In my app each user has a different location on the webserver where he can put the files into. Is it possible to set the upload path dynamically. Has anyone an example/snippet to do that?
Thanks
Martin
Hi Martin,
You can check our help how to configure your css files: http://help.infragistics.com/NetAdvantage/jQuery/Current/CLR4.0?page=Deployment_Guide_Styling_and_Theming.html
Also I suppose you have not added some reference to a css file. You can expect the DOM element with Mozilla Firebug, Internet Development Tools or any other tool(you prefer) for expecting DOM elements.
Thanks,
Miro Hristov
Hi Miroslav,
thank you for your help. With your help the webupload now works fine. I have one additional question. I cannot see the icon at the right side of each uploadable file where i can cancel (x) and remove the item from the list. I tried almost each setting. The tooltip appears but not the icon. I also found nothing in the online help.
WebUpload control allows you to manipulat(delete, move, copy, etc) uploaded files as you want. First the file upload path that you configure in web.config is file for temp folder where all files are saved while uploading. Btw while uploading they are with unique names (that are generated from Upload HttpModule). If you do not bind to event UploadFinishing then the uploaded file is renamed to its original file name(if there is a file with the same name it will be overwritten). To achieve your target you should only bind to the server-side event UploadFinishing. In the event handler you can just cancel this event and to move it to the folder you want (or to manipulate the file as you prefer). Samples you can find in the samples browser. For instance here is a link: http://samples.infragistics.com/aspnet/Samples/WebUpload/Display/MultipleUpload/Default.aspx?cn=web-upload&sid=a8c69ee2-99e1-4512-938b-52c5d0b9cb6f. You should choos from the section CODE VIEW from the dropdown file Default.aspx.cs where you can see that we have bound to this even. The event handler is with the name webUpload1_OnUploadFinishing. There we get the name of the file (as I said it is with unique name) and you can move it to the folder you prefer. In the event arguments you can get the original file name.
MIro Hristov