Welcome to Mediachase Community Sign in | Join | Help    
in Search   

McHtmlInputFile - SaveAs/MoveTo

Last post Thu, Jul 30 2009, 11:02 PM by Oleg Zhuk. 1 replies.
Sort Posts: Previous Next
  •  Thu, Jul 30 2009, 5:05 PM 11094

    McHtmlInputFile - SaveAs/MoveTo

    I am using McHtmlInputFile (2.0.2781.20609) control to upload large files.  I need to upload files to different locations on the disk. Should I use SaveAs() or MoveTo() function? I tried both and they both did the job.

     

    Also, I could not find Release memory function in McHttpPostedFile or McHtmlInputFile classes.  Does ReleaseAll/ReleaseFile apply only to FileUploadControl.

     

     

    Thanks

  •  Thu, Jul 30 2009, 11:02 PM 11096 in reply to 11094

    Re: McHtmlInputFile - SaveAs/MoveTo

    MoveTo method is faster. But you can call it only once.
    SaveAs method is slower than MoveTo, becuse it copy binary stream. But you can use unlimited times.

    >> Does ReleaseAll/ReleaseFile apply only to FileUploadControl.
    Yes. FileUploader control saves binary stream between post. McHttpPostedFile doesn't have Release memory function, it release file stream automatically.


View as RSS news feed in XML
Site Terms | Privacy Policy | About Us | Contact Us
Running on Mediachase eCommerce Framework 4.0.
  Copyright © Mediachase, LTD. 1997-2006. All Rights Reserved

E-commerce, HelpDesk, Service Desk & Project Management Software, alternatives to Microsoft Project Server & Sharepoint Collaboration Server
project management software | microsoft project server | sharepoint collaboration server | issues management, helpdesk & service desk
Powered by Community Server, by Telligent Systems