Dart Home | PowerTCP Web Enterprise for ActiveX | Custom Development | Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums |
Author | Forum: PowerTCP Web Enterprise for ActiveX Topic: File Transfers |
Suni From: hoffman Estates, IL USA Posts: 11 Member Since: 05/09/05 |
posted May 9, 2005 1:11 PM Hey quick question. I am farely new to the Web Enterprise Tool and i was trying to figure out a way to post files to my server and retrieve them on the server side and place them in a different area. So i know that the POST and PUT commands but how would i retrieve it from the server side so i can place it in the proper folders. Thanks |
Tony Priest From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 10, 2005 8:56 AM If I understand what you are asking, then the ASP script that you are posting to would have to contain code to move the files after they were posted. |
Suni From: hoffman Estates, IL USA Posts: 11 Member Since: 05/09/05 |
posted May 14, 2005 1:25 PM Yes |
Tony Priest From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 14, 2005 1:35 PM Please see the following thread: http://support.dart.com/postings?topicid=3944 |
Suni From: hoffman Estates, IL USA Posts: 11 Member Since: 05/09/05 |
posted May 25, 2005 1:02 PM Is there any examples of posting a file in foxpro, i am having trouble passing the file object. This is what i have so far but doesnt work (if someone can help me that would be great): ofiles = Createobject("Dart.DartStream.1") of1 = Createobject("Dart.DartStream.1") oWebASP.Request.Variables("ACTION") = "ADD_FILES" oWebASP.Request.Url = gOfficeserver of1.FileName = "C:\Documents and Settings\Desktop\file1.doc" of1.Ref = "file1" ofiles.Add(of1) oWebASP.Request.FilesToPost=of1 oWebASP.Post |
Tony Priest From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 25, 2005 1:18 PM Please define "doesn't work" What is the exact error message that you get? |
Suni From: hoffman Estates, IL USA Posts: 11 Member Since: 05/09/05 |
posted May 25, 2005 1:33 PM The error i am getting is unknown name error. and it occurs at the: ofiles.Add(@of1) line.... i would attach a screen shot but dont have an option to attach. |
Suni From: hoffman Estates, IL USA Posts: 11 Member Since: 05/09/05 |
posted May 25, 2005 1:33 PM forget the @ sign i accidentally added. |
Tony Priest From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 25, 2005 1:38 PM Well I see a couple of things that could be causing this: 1. oFiles should be DartStreams, not DartStream 2. FilesToPost should be set to oFiles, not of1 If you have VB, I would advise you to look at the VB sample and get that working first. |
Suni From: hoffman Estates, IL USA Posts: 11 Member Since: 05/09/05 |
posted May 25, 2005 2:19 PM Still get an unknown name, but this time at. of1.FileName = "C:\Documents and Settings\suni\Desktop\file1.doc" By the way i dont have VB. that why i cannot open up samples of the code..... Thanks for your help |
Tony Priest From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 25, 2005 2:24 PM You may have to add "object" before the name, like this: of1.object.FileName I found this by searching our forum for VFP and reading through the other posts You can also try searching for FoxPro |
Suni From: hoffman Estates, IL USA Posts: 11 Member Since: 05/09/05 |
posted May 25, 2005 2:51 PM No luck there either, i read through the VFP threads and there is nothing that pretains to this. Any other ideas?????? i just want to be able to send 1 file and that is it and i looked at the VB code transferred it to VFP and it is not working.... |
Tony Priest From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 25, 2005 3:27 PM Unfortunately I don't have any more advice. Are you saying you read through all 65 posts and nothing even pointed you in the right direction? If so, then I would advise you to email support@dart.com to find out about more advanced support options |
Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums |
This site is powered by PowerTCP WebServer for ActiveX |