Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Upload to Remote File Server

Status
Not open for further replies.

vikrambade

Programmer
Sep 20, 2001
12
CA
Hi,

I have a task which requires a file to be uploaded from a ASP page to a Remote File Server in a Intranet Environment using Microsoft ASPFileUpload Component.

Scenario: A User should be able to select a file for upload from ASP Page and submit the form. On doing so, the file should not be uploaded to the webserver but the file needs to be uploaded to a remote File server which is used exclusively to save files to save space on the webserver. The File server does not have a HTTP access and i have the network path (Similar to \\XYZServer\e\ABCWebsite) and this file path is accessable in the webserver network.
I tried this using the below code:

<OBJECT id=&quot;fuFile&quot; progid=&quot;ASPFileUpload.File&quot; runat=&quot;server&quot; VIEWASTEXT></OBJECT>
<%
strCheckPath = &quot;\\XYZServer\e\ABCWebsite\&quot;
fuFile.FileName = &quot;abc.doc&quot;
fuFile.OverWrite = True
fuFile.Target = strCheckPath
fuFile.Upload
%>

But the above code gives me the below error:

ASPFileUpload error '800a0034'

Bad file name or number

This error points to the line which as fuFile.Upload

I have all the permissions for the ABCWebsite folder set. The ASPFileUpload component runs under a local user account
identity on the webserver and this local user has been created on the file server too and their passwords are in Sync and granted full permissions to the folder to which the file has to be uploaded.

Any help would be greately appreceiated.

Regards.
Vikram
 
thats not possible using ASP as the server can move/copy/delete files which are in the systme on which the server is running. otherwise it will lead to security problems.

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top