Forum Discussion

Jenli's avatar
Jenli
Creator I
5 years ago

File Checkout function unusual

Hi Team,

I am trying to Checkout/Download the File from CAD operation, here is my code, it seems working fine till line 11, but it finally checkout the file as "vaultserver.aspx"?? Any ideas? Thank you!

3 Replies

  • It finally checkout the file like this,

    • angela's avatar
      angela
      Catalyst II

      "Checkout" is an old concept, I don´t think it still works for Innovator 12. This one is a more modern variant:

      // Get file
      var fileItem = aras.getItemById("File", "1234566....");
      // Download file
      aras.downloadFile(fileItem, "myfile.zip");

      • Jenli's avatar
        Jenli
        Creator I

        Thanks Angelalp for always being here!

        I tried downloadFIle function and turns error. Actually if I change the suffix of "vaultserver.aspx " as it is, such as(.dwg), then open it, which I found out it is the file I exactly downloaded. And now the question is why the checkout file is named "vaultserver.aspx by using checkout fuction.

        Thanks,

        Jen