What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 32385 |  Welcome, Guest!   Register  Login
  Home > Community Home >

Problems with System.IO.File.Copy on server - how to create a file(info) from a stream?

 Author: Stefan Aschenbrenner | Posted on: 6/16/2008 5:21:13 AM | Views: 81

Recommend an Articles | Recommended Articles | Search Resources | Community Home |




Hi!

I have a problem with fileupload-component. I want to upload the file from the client on the server.
I can not use the fileupload1.SaveAs(...) methode. I have to copy the file with System.IO.File.Copy.

But I get the error (only on server) "file c:/test.txt (client) not fount". I think it is searched on the servers C:/.

I thought I could solve that with a stream.

But how to create a file (or a fileinfo - to get all proberties of the file before creating) from stream.

 

Thank you all!
... Go to the complete details ...

Found interesting? Add this to:


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 3:33:35 AM