I figured out one way:
axlCreateAttachment("my_attachment" nil 1 'file "my_file")
myattachment_id = axlGetAttachment("my_attachment" 'file)
Then edit by: axlUIEditFile(myattachment_id->data "MY FILE" nil)
Save the file, then:
version = myattachment_id->revision +1
new_file = myattachment_id->data
axlCreateAttachment("my_attachment" nil version 'file new_file) I would still like to know how to use axlSetAttachment().
I created an attachment using axlCreateAttachment(my_attachment nil 1 'file my_file)
edit the file using axlUIEditFile(axlGetAttachment("my_attachment"
'file)->data). After saving the file, this save to a temp. directory,
I want to update the current attachment.
Is there away to use axlSetAttachment() to update the current "my_attachment"? Or is there some other method?