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

  • SEARCH
  • Home
  • 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 6241813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:50:09+00:00 2026-05-24T11:50:09+00:00

I have a project where I get a list of file location strings that

  • 0

I have a project where I get a list of file location strings that I want to save locally. I want to use a FileUploader to do so. I am trying something like this so far:

            FileUpload filesaver = new FileUpload();

            //Iterate over each files (InputFiles is a linked list of file locations)
            foreach (string File in InputFiles)
            {
                //Get file
                Stream fileLoaded = OpenFile(File);

                filesaver.FileContent = fileLoaded;

                //Save file                    
                filesaver.SaveAs(DownloadLocation);

                //Code...}

The problem is that filesaver.FileContent = fileLoaded; is not a valid call (FileContent is read only).

How would I be able to get the file to the file loader so that I can save it if I have a string of that file location?

Edit I am using the FileUpload Class

  • 1 1 Answer
  • 0 Views
  • 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. Editorial Team
    Editorial Team
    2026-05-24T11:50:11+00:00Added an answer on May 24, 2026 at 11:50 am

    The ASP.NET FileUploader has the client side send the file to the server side. It does not send a file path as a string, so there is no way to intercept the file path and “upload” on the server side. if that is your intent, you are not going to find a way to get there from here.

    If you want to save the actual file binary bits once it gets to the server, there are plenty of examples out there that persist the data to databases or file system.

    If you are trying to get paths as strings, the file uploader is not your best choice, but note that the file path strings, if they are local to the client, are of no use on the server side.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that has alot of file manipulation. I am trying out
I have a project where we are trying to get the code space down.
I have a SSIS project that queries a database and get item level data.
I get this error when trying to link a win32 exe project. I have
We have just completed implementing a successful but problematic project. We want to get
I have a project that creates a disk image and would like to use
Here I am trying to get the list of files which I have saved
I have a Project, where I want to use the asp.net Routing function. Therefore
I have a project in Xcode that I need to use the AWS SDK
I have an iOS project to open and when i open it i get

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.