Git Product home page Git Product logo

Comments (6)

finchr avatar finchr commented on August 25, 2024

any updates on this?

from md2cf.

iamjackg avatar iamjackg commented on August 25, 2024

Hey, sorry about the delay. This seems to be due to an API difference between Confluence Cloud and Confluence Server.

#16 changed the method from POST to PUT in order to allow for attachment updates, but it looks like that only works for Confluence Cloud, whereas Confluence Server needs a different POST request to update an attachment. @timothybonci FYI.

I'll take a look when I have a moment and see how best to manage this. It should be enough to check for the attachment beforehand and update it if necessary.

from md2cf.

timothybonci avatar timothybonci commented on August 25, 2024

Yeah, that's a bit of a bummer. It looks like both support POST /wiki/rest/api/content/{id}/child/attachment/{attachmentId}/data
So this would require an extra call to get the attachmentId first I guess, instead of being able to blindly PUT.

from md2cf.

iamjackg avatar iamjackg commented on August 25, 2024

Hey @finchr, this should be fixed in v1.1.0. Could you please confirm? Thanks!

from md2cf.

iamjackg avatar iamjackg commented on August 25, 2024

I'll assume this is fixed since I had no issues when testing it again :) Cheers!

from md2cf.

finchr avatar finchr commented on August 25, 2024

Hey @finchr, this should be fixed in v1.1.0. Could you please confirm? Thanks!

Hi @iamjackg the fix is confirmed! It's working with the latest version!

from md2cf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.