Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
Dynamically Set File Path
posted

Hi,

We host a number of clients from a common site.  When we upload files we like to send them to different locations dependant on who the client is.  Please add a property to the control that would allow us to set the file path dynamically.

I would guess this would be a fairly common request.

Thanks.

Parents
  • 1800
    posted

    Hi corydowd,

    Did you use FileUpload asp.net wrapper. If yes then you can use server-side event OnUploadFinishing. Here is example for Upload Finishing event handler http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.1/CLR4.0/html/WebUpload_HTTP_Module_and_Handler.html

    You can cancel this event and Save the file where you want. The idea is that fileUploadPath proprty is temporary folder where files are saved with temporary names. When the file is uploaded it is renamed to its original name. But the developer can attach to server side event onUploadFinishing and when the file is uploaded he could renamed/ delete/move(or what he wants to do) this file.

    I hope this post will be helpful for you.

    Regards,
    Miro Hristov

Reply Children
No Data