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: Getting the Files after POST |
Suni From: hoffman Estates, IL USA Posts: 11 Member Since: 05/09/05 |
posted May 31, 2005 6:34 PM here is my code to post the file(which works): ofiles = Createobject("Dart.DartStreams.1") of1 = Createobject("Dart.DartStream.1") oWebASP.Request.Variables("ACTION") = "ADD_FILES" oWebASP.Request.Url = "address_to_server" of1.FileName = "C:\test.txt" of1.Ref = "<file>" ofiles.Add(of1) oWebASP.Request.FilesToPost=ofiles oWebASP.Post Here is the code to retrieve the file (which is not working): If m.frm_action = "ADD_FILES" For Each oFile In oSuniRequest.Files oFile.DeleteOnDestroy = 0 oFile.FileMode = 0 oFile.Filename = "c:\suni_test.doc" ENDFOR oBody.Write("-OK") ENDIF If any one can tell me what i am doing wrong that would be great the source code is no help at all. I have three people trying to figure this out for us and no one can figure this darn thing out........ Please help ASAP (if possible)........ |
Suni From: hoffman Estates, IL USA Posts: 11 Member Since: 05/09/05 |
posted May 31, 2005 6:35 PM Forgot to mention the programming language is FOXPRO 8.0 |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 1, 2005 8:57 AM Please define "not working": What doesn't happen that is supposed to happen? What error messages do you get? |
Suni From: hoffman Estates, IL USA Posts: 11 Member Since: 05/09/05 |
posted June 1, 2005 10:43 AM we dont get an error message but the file doesnot appear in the folder. And we have tried everything.... |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 1, 2005 10:46 AM I'll have someone contact you regarding more advanced support options. |
Suni From: hoffman Estates, IL USA Posts: 11 Member Since: 05/09/05 |
posted June 1, 2005 10:59 AM Dont worry about we just got it working. Thank you for your help. |
Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums |
This site is powered by
![]() |