Search Again:

Upload File Problem

From: Jesse LaVere
Date: Wednesday, December 31, 2003
Time: 3:24:03 pm

Hello,

I just started using netTools with filemaker and I'm running into a=20
strange problem.

I'm exporting a file from filemaker and then using netTools to upload=20
that file to a server through a form submission.

Here is the script

Enter Browse Mode
Show All Records
Set Field [ g_Tracker, External("JAVB-Command", "NETT-NewForm") ]
Set Field [ g_Tracker, External("JAVB-Command", "NETT-AddRequestHeader"=20=

& "|" & "enctype" & "|" & "multipart/form-data") ]
Set Field [ g_Tracker, External("JAVB-Command", "NETT-AddField" & "|" &=20=

"MAX_FILE_SIZE" & "|" & "5000") ]
Set Field [ g_Tracker, External("JAVB-Command", "NETT-AddField" & "|" &=20=

"userfile" & "|" & "file") ]
Set Field [ g_Tracker, External("JAVB-Command", "NETT-AddFileField" &=20
"|" & "userfile" & "|" & "/Users/vere/Favorites/NSSE/export.tab") ] #=20=

# # #
Set Field [ g_Tracker, External("JAVB-Command", "NETT-SubmitForm" & "|"=20=

& "http://24.130.251.103/nsse/handleUpload.php" & "|" & 1800) ]
If [ Left(g_Tracker,4) =3D "ERR:" ]
Show Message [ Buttons: =93OK=94, =93=94, =93=94; Data: =93There =
was an error=20
opening the link to Rackspace.=94 ]
Else
Set Field [ g_Tracker, External("JAVB-Command",=20
"NETT-GetResponseData") ]
If [ Left(g_Tracker,4) =3D "ERR:" ]
Show Message [ Buttons: =93OK=94, =93=94, =93=94; Data: =
=93There was an error on=20
Rackspace.=94 ]
Else
Show Message [ Buttons: =93OK=94, =93=94, =93=94; Data: =
=93Success!=94 ]
End If
End If


The form submission and upload work great, but once I've run the=20
process, my export can no longer write over the export file.=20
Complaining that it is locked or in use. It appears that netTools is=20
not unlocking the file when it's done with it.

Do I need to send some other command to tell nettools to give up the=20
file?

Any help would be appreciated.

Jesse LaVere


-------------------------------------------------------
To subscribe, unsubscribe and list archive please visit
http://www.digitalpoint.com/lists/javacompanion.html
-------------------------------------------------------



Messages In This Thread:



Return to Digital Point Solutions' Home Page