DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Basic ASP.NET doubt

  1. #1
    Seelan Rajagopal Guest

    Basic ASP.NET doubt

    Hey Guys!
    I have a code that uploads file to my local C:\uploads directory. I was
    wondering what would happen if i run the code and upload a file from an
    external computer(I'm running a webserver), would the file be uploaded to my
    local c:\uploads directory? or will it be uploaded to that external
    computer's c:\uploads directory?
    Please reply asap.
    Thanx



  2. #2
    Dave Rothgery Guest

    Re: Basic ASP.NET doubt

    Except possibly during testing and development, your local machine and the
    server an ASP.NET page is running on are not the same. So unless the server
    and your local machine are on the same network (and not merely connected
    over the internet), there's no way for the server to write to your local
    machine. Allowing something like this would be a massive security hole.

    "Seelan Rajagopal" <t-seeraj@microsoft.com> wrote in message
    news:3f856e6b$1@devx7.web.devx.com...
    > Hey Guys!
    > I have a code that uploads file to my local C:\uploads directory. I was
    > wondering what would happen if i run the code and upload a file from an
    > external computer(I'm running a webserver), would the file be uploaded to

    my
    > local c:\uploads directory? or will it be uploaded to that external
    > computer's c:\uploads directory?
    > Please reply asap.
    > Thanx
    >
    >




  3. #3
    Seelan Rajagopal Guest

    Re: Basic ASP.NET doubt

    Yes, the server and my local machine are on the same machine. Is it
    possible?

    "Dave Rothgery" <drothgery@alum.wpi.edu> wrote in message
    news:3f85848f@devx7.web.devx.com...
    > Except possibly during testing and development, your local machine and the
    > server an ASP.NET page is running on are not the same. So unless the

    server
    > and your local machine are on the same network (and not merely connected
    > over the internet), there's no way for the server to write to your local
    > machine. Allowing something like this would be a massive security hole.
    >
    > "Seelan Rajagopal" <t-seeraj@microsoft.com> wrote in message
    > news:3f856e6b$1@devx7.web.devx.com...
    > > Hey Guys!
    > > I have a code that uploads file to my local C:\uploads directory. I was
    > > wondering what would happen if i run the code and upload a file from an
    > > external computer(I'm running a webserver), would the file be uploaded

    to
    > my
    > > local c:\uploads directory? or will it be uploaded to that external
    > > computer's c:\uploads directory?
    > > Please reply asap.
    > > Thanx
    > >
    > >

    >
    >




  4. #4
    Tim Ellison Guest

    Re: Basic ASP.NET doubt

    If I understand this properly, you are using an upload control to upload a
    file from a client (the browser and thus a user's workstation) to a location
    on the server ( "C:\uploads" ).

    In this context, your workstation is BOTH the client and the web server. If
    you were to deploy the web server to another machine and you were to connect
    to that machine (server) from your workstation (browser aka client), then
    the file upload would place a file on the server's "C:\uploads" directory.

    --
    TIMOTHY ELLISON

    "Seelan Rajagopal" <t-seeraj@microsoft.com> wrote in message
    news:3f856e6b$1@devx7.web.devx.com...
    > Hey Guys!
    > I have a code that uploads file to my local C:\uploads directory. I was
    > wondering what would happen if i run the code and upload a file from an
    > external computer(I'm running a webserver), would the file be uploaded to

    my
    > local c:\uploads directory? or will it be uploaded to that external
    > computer's c:\uploads directory?
    > Please reply asap.
    > Thanx
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center