![]() |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jul 2003
Location: Yeovil
Posts: 8
|
Hi,
Can anyone let me know if I can allow my users to upload files to the server my site is hosted on. I would like to use the ASP.net 2.0 file upload control. Is this possible and if so what would the upload path be? Would the user need to supply any credentials? Thanks for your help Darren. |
|
|
|
|
|
#2 (permalink) |
|
Bring me your problems :p
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,536
|
Hi,
We don't have any code examples, however another user on the forums may be able to share some with you ![]() The path to your site is shown in HELM under 'web site settings', this is the path to the root of your domain. |
|
|
|
|
|
#3 (permalink) |
|
Administrator
Join Date: Oct 2003
Posts: 1,484
|
It's really easy. I've give the example in c# but it's easy enough to work out what it should be in VB or any other .net language.
Add Code:
<asp:FileUpload ID="fileUpload" runat="server" /> Add Code:
fileUpload.SaveAs(@"D:\Domains\mydomain.com\wwwroot\myfile.txt"); See http://http://msdn2.microsoft.com/en...ileupload.aspx for further info. HTH Jas
__________________
Jason Robbins jason@catalyst2.com |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|