Is the libUrlMultipartFormAddPart handler broken in Rev 2.6.5? I copied the script in the documentation and I get an error - can't track it down....

If anyone has a working example of using this function, or on a related topic anyone have a copy of a Rev based HTTP server?

This is my script?

on mouseUp
   answer file "Select a file"
  put it into someFile
  test_Add someFile
end mouseUp

on test_Add someFile
  put empty into tForm
  put "dave" into tName
  put "hello" into tMessage
if libUrlMultipartFormData (tForm, "name", tName, "message", tMessage)\
  is not empty then
    ##handle error and exit
  end if
  set the httpHeaders to line 1 of tForm
  delete line 1 of tForm
  put "" & someFile into tFile
  put "image/gif" into tType
  put "binary" into tEnc
if libUrlMultipartFormAddPart(tForm,"file", tFile, tType, tEnc) is empty then
    ##handle error and exit
    answer "Error"
  else
  put tForm
    -- post  tForm to url
    -- set the httpHeaders to empty
  end if
end test_Add

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to