Problem in setting the rights to see the file through a messenger developed in JAVA

Comments

10 comments

  • Andreas Haugstrup Pedersen

    Which API operations are you using and how?

    0
    Comment actions Permalink
  • Aritra Mullick

    I have used the upload file and get file operation. It is uploading the file in the podio server successfully and I am able to send the file to the user I want to send, but when the receiver is trying to open the file it is showing error message displaying "you don't have access to this file".

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    It's not enough to upload a file. You also need to attach it to some other entity (an item, a task a workspace etc.). Use the file_id you get back after uploading to attach the file to something else.

    /Andreas

    1
    Comment actions Permalink
  • Aritra Mullick

    In attach file operation the file can be attached to these objects "status", "item", "comment", "space", or "task". Can you tell me if I can attach it with the conversation entity??

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    Yes, you can attach a file when creating a conversation. See the file_ids property on https://developers.podio.com/doc/conversations/create-conversation-v2-37301474

    0
    Comment actions Permalink
  • Aritra Mullick

    Some problems are arriving while using that "Create Conversation V2" function. The file id I am getting after the uploading the file, I am sending that file id as the parameter in that function, but it is giving an exception.I am coding in Java. Thanks in advance

    0
    Comment actions Permalink
  • Aritra Mullick

    I didn't get the response for my last question. Please help me on that.

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    It would help an awful lot if you could share the details of your exception as well as the HTTP request and response (the response body will contain error details)

    0
    Comment actions Permalink
  • Aritra Mullick

    After generating the file id it is giving an exception like this "Exception in thread "AWT-EventQueue-0" APIException [status=Not Found, error=not_found, description=No matching operation could be found. No body was given., parameters=null]"

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    If you grab a dump of the HTTP request headers and body and the reponse headers and body you can see where your request is going because it's not going to the right URL at the moment.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk