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

Bypassing temp storage and saving directly to permanent storage.

Last post Tue, Aug 05 2008, 10:49 PM by Oleg Zhuk. 1 replies.
Sort Posts: Previous Next
  •  Mon, Aug 04 2008, 11:55 AM 10033

    Bypassing temp storage and saving directly to permanent storage.

    I'm essentially looking to just bypass the temp storage and save directly to the permanent media. I have set the web.config as such:

    <tempFileStorage timeout="60" defaultProvider="McLocalDiskTempFileStorageProvider" enabled="false">

    So it's now not putting the file in the temp storage and not displaying the file in the tree list to confirm before saving  (as I want), but I need to figure out a way to override the "upload" behavior to do a direct save.

    I used the "Lesson 2 - Uploading new files to file storage" sample as my base code and have been changing things from there. 

    Can anyone advise?

    Thanks,

    ~Peter

  •  Tue, Aug 05 2008, 10:49 PM 10035 in reply to 10033

    Re: Bypassing temp storage and saving directly to permanent storage.

    First, we highly recommend you to use Temporary storage. Because ASP.NET is built in such way that all client requests are kept in memory as one data thread.In many cases, this allows improved system performance and reduced time it takes to process each request.However, when you upload large files, your application and system performance will go down proportionally to file size. This is because more memory and processor power is required to process these requests.

    Also, FileUploadControl uses pattern:
    1. Show Command Panel with command buttons
    2. Upload several files in several post to temporary storage
    3. Commit changes from server temporary storage to real storage (Save to persistent storage, like SQL, File or external WebService).

    So, If you turn off temp file storage you can not use
    FileUploadControl, but you can use McHtmlInputFile and show progress information (see lesson 0).

    I wish, my information helps you.



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