Home > Community > Forums > PCB SKILL > How can you update an attached file?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How can you update an attached file? 

Last post Fri, Dec 14 2012 1:49 PM by jwhend. 0 replies.
Started by jwhend 14 Dec 2012 01:49 PM. Topic has 0 replies and 764 views
Page 1 of 1 (1 items)
Sort Posts:
  • Fri, Dec 14 2012 1:49 PM

    • jwhend
    • Top 500 Contributor
    • Joined on Fri, Nov 11 2011
    • Santa Clara, CA
    • Posts 23
    • Points 380
    How can you update an attached file? Reply

    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

    axlDeleteAttachment(myattachment_id->id

    axlCreateAttachment("my_attachment" nil version 'file new_file)
    I would still like to know how to use axlSetAttachment().

    Thanks again.

    Hi all,

    I created an attachment using axlCreateAttachment(my_attachment nil 1 'file my_file)

    I 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?

    Thanks,

    Jerry

    • Post Points: 5
Page 1 of 1 (1 items)
Sort Posts:
Started by jwhend at 14 Dec 2012 01:49 PM. Topic has 0 replies.