Forums
This topic is locked
Pure ASP Upload Questions
Posted 05 Jan 2004 18:33:52
1
has voted
05 Jan 2004 18:33:52 Katherine Williams posted:
Hello,I'm trying to set up a new application that uses Pure ASP Upload to upload a PDF file from one internal intranet server (S1) into a folder on another external web-server (S2), which are on the same network. I've created several applications that use ASP pages on S1 to INSERT/UPDATE.DELETE db data which is then displayed on S2.
This is what I need:
I want to create an application on S1 that will give the user the option to attach a PDF file by using Pure ASP Upload. I want the file to be saved in a folder that's located on S2 (i.e. www.web-server-name.com/Agenda_Packets/)
Unfortunately, I can't figure out how to save the actual file onto a different server. Any & all help would be appreciated. In the meantime, I'll keep troubleshooting. Thanks.
KWilliams
Replies
Replied 07 Jan 2004 13:18:37
07 Jan 2004 13:18:37 Patrick Woldberg replied:
Are the servers located in the same network, you can't put the script on one server and upload to an other server when that is not located in the same network. You need a mapping to the other PC to upload there, otherwhise it is not possible.
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 07 Jan 2004 16:17:29
07 Jan 2004 16:17:29 Katherine Williams replied:
Hi Patrick,
Yes they are both located on the same network, which uses IIS6 & Win2k Pro. S1 is an internal intranet server, and S2 is an external web-server.
KWilliams
Yes they are both located on the same network, which uses IIS6 & Win2k Pro. S1 is an internal intranet server, and S2 is an external web-server.
KWilliams
Replied 12 Jan 2004 16:50:45
12 Jan 2004 16:50:45 Katherine Williams replied:
Patrick,
I've tried several options to get the Pure ASP Upload file saved from our internal server to the external server on our network, but it's not been working. Do you know of a solution to this?
KWilliams
I've tried several options to get the Pure ASP Upload file saved from our internal server to the external server on our network, but it's not been working. Do you know of a solution to this?
KWilliams
Replied 12 Jan 2004 22:30:16
12 Jan 2004 22:30:16 Katherine Williams replied:
Patrick,
I have come up with what I think is a solution to this problem. I'd like to use the FSO CopyFile method to copy the uploaded file from the internal server to the external server. This is what we've come up with so far:
<SCRIPT LANGUAGE="VBSCRIPT" RUNAT="SERVER">
strFileName = Session("Packet2"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject"
strLocation1 = "c:\inetpub\wwwroot\MyAccess\Commission\Agenda_Packets" & strFileName
strLocation2 = "\\WEBSERVERNAME\Local_Govt\Agenda_Packets"
objFSO.CopyFile strLocation1, strLocation2
Set objFSO = nothing
</SCRIPT>
I'm thinking that I can place this somewhere on the incPUpload.inc page. What's your opinion on this setup, and do you think that I'm going in the right direction? Thanks.
KWilliams
I have come up with what I think is a solution to this problem. I'd like to use the FSO CopyFile method to copy the uploaded file from the internal server to the external server. This is what we've come up with so far:
<SCRIPT LANGUAGE="VBSCRIPT" RUNAT="SERVER">
strFileName = Session("Packet2"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject"
strLocation1 = "c:\inetpub\wwwroot\MyAccess\Commission\Agenda_Packets" & strFileName
strLocation2 = "\\WEBSERVERNAME\Local_Govt\Agenda_Packets"
objFSO.CopyFile strLocation1, strLocation2
Set objFSO = nothing
</SCRIPT>
I'm thinking that I can place this somewhere on the incPUpload.inc page. What's your opinion on this setup, and do you think that I'm going in the right direction? Thanks.
KWilliams
Replied 14 Jan 2004 12:41:32
14 Jan 2004 12:41:32 Patrick Woldberg replied:
You can put it in the include file or just on the page where the Pure ASP Upload is added and place it directly after the behavior. Did you try the script if it works?
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------