vikrambade
Programmer
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="fuFile" progid="ASPFileUpload.File" runat="server" VIEWASTEXT></OBJECT>
<%
strCheckPath = "\\XYZServer\e\ABCWebsite\"
fuFile.FileName = "abc.doc"
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
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="fuFile" progid="ASPFileUpload.File" runat="server" VIEWASTEXT></OBJECT>
<%
strCheckPath = "\\XYZServer\e\ABCWebsite\"
fuFile.FileName = "abc.doc"
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