Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 78079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:55:51+00:00 2026-05-10T20:55:51+00:00

I have a scenario where users of my ASP.NET web application submit testimonials consisting

  • 0

I have a scenario where users of my ASP.NET web application submit testimonials consisting of text info and images. The submit process has the following steps:

  • First the user inputs the content and chooses a path to an image
  • When he clicks preview, the info is once again shown so that he can confirm
  • Once confirmed the info is persisted in the database

The problem with this is that I don’t want to store uploaded images in the DB before the user actually confirms. Instead I store them as temporary files and put them in DB only after final confirmation.

Since I also want my application to run in medium trust, I have write permissions only to the application directory and nowhere outside. I even want to limit write permissions for the ASPNET / NETWORK SERVICE user to the ~/App_Data folder. The problem with my scenario is that once a temporary file is created in this folder, the application pool is recycled and I don’t want that on every testimonial submit.

How do you advise I keep these temp files instead? The pool is not restarted if I update a file – only on create or rename. But I don’t think I can store whole images in a single file for all users. What do you think?

UPDATE: I should note that I’m using a third party control for upload. It gives me programmatic access to the binary stream of the file contents after upload, but I cannot keep this after a second postback (the first step and postback actually does the upload).

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:55:51+00:00Added an answer on May 10, 2026 at 8:55 pm

    I would recommend IsolatedStorage. It’s a kind of virtual folder.

    Here is an excerpt from an example on CodeProject:

    IsolatedStorageFileStream stream =    new IsolatedStorageFileStream(ISOLATED_FILE_NAME,    FileMode.Create, isoStore);  StreamWriter writer = new StreamWriter( stream ); writer.WriteLine( 'This is my first line in the isolated storage file.' ); writer.WriteLine( 'This is second line.' ); writer.Close(); 

    UPDATE: To clean up your file just do this:

    string fileName = 'isolatestorage.txt';  IsolatedStorageFile storage = IsolatedStorageFile.GetStore(     IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null);  string[] files = storage.GetFileNames(fileName); foreach(string file in files) {     if(file == fileName) {         storage.DeleteFile(file);         break;     } } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following scenario. I have created an ASP.NET web application (framework 3.5)
Let me share the following scenario: I have a ASP.NET intranet Web-based application that
I use an HttpHandler to dynamically serve images in a ASP.Net web application. I
I have a simple ASP.NET MVC web application that uses NHibernate with FluentNHibernate's auto
I have some .aspx pages in my asp.net web application which only admin can
The Scenario: I have an ASP.Net webpage which I intend to use for letting
I have a legacy ASP.NET application in which there are some session/concurrency related issues
In asp.net the major data stores are application, session and we also have the
I have a scenario that I'm not sure how to handle in ASP.NET. I
I am stuck with asp.net post issue with last 2 weeks. Scenario: My application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.