Welcome to the new Box Support website. Check out all the details here on what’s changed.

UploadAsync

New post

Comments

9 comments

  • Lukasz Socha

    Hi,
    the code seems to be ok - I managed to upload a file using your code snippet. I think the problem is somewhere in you app settings or permissions. What application type are you using? May I ask you about the app id - I'll check your settings.

    Regards,
    Łukasz Socha

    0
    Comment actions Permalink
  • koppewar k

    Hi,
    I am using .net framework 5 windows application. App name is dsr and enterprise I'd is 883637019.

    0
    Comment actions Permalink
  • Lukasz Socha

    And what authentication type app do you use? JWT, CCG or OAuth. App id may be found as last part of url when you enter your app from dev console.

    0
    Comment actions Permalink
  • koppewar k

    I am generating token through dev console and i am using that in SDK. I can use jwt or oauth if you suggest

    0
    Comment actions Permalink
  • Lukasz Socha

    During creating the app you had to choose one of the authentication method. Did you remember which one did you choose?

    0
    Comment actions Permalink
  • koppewar k

    I think jwt.

    0
    Comment actions Permalink
  • Lukasz Socha

    I noticed that this error 'The grant type is unauthorized for this client_id' appears when you change some settings in Dev Console, save changes, but still use the old access token. Each settings change requires generating and using new developer token. Let me know if this was this your case - generate new developer token, try to use it and let me know if it helped.

    0
    Comment actions Permalink
  • koppewar k

    I tried as you said , it worked

    thank you

    0
    Comment actions Permalink
  • koppewar k

    May i know where from i get 

    <Private_Key>, <JWT_Private_Key_Password>, <JWT_Publickey>

    is this only for paid users? then how can i get token without this. I want token to be generated on the fly.

    0
    Comment actions Permalink

Post is closed for comments.