How can I change the filename?

Last post 09-20-2011, 6:42 PM by coralweb. 1 replies.
Sort Posts: Previous Next
  •  09-20-2011, 1:39 PM 70119

    How can I change the filename?

    Hi! I know there is a unique filename generated but I was wondering if there was a way to change the name to what i'd like?
    If so, does anyone know how I can do this?
     
    thanks in advance
     
    coral
  •  09-20-2011, 6:42 PM 70123 in reply to 70119

    Re: How can I change the filename?

    Figured it out in case anyone wants to know.
     
    you can use :
     
    args.Item.CopyTo(@"\\myserver\myfolder\" + args.Item.FileName);
     
    in the Event handler you use for either multiple file uploads or single.
     
     
View as RSS news feed in XML