Skip to main content
Question

File upload to user content area

  • May 22, 2025
  • 1 reply
  • 2 views

Forum|alt.badge.img

If you use C # to upload the file to the box, But what if I want to upload to the user's content area instead of a custom app? please let me know.

1 reply

Forum|alt.badge.img

Hi

Normally when you use a custom app (JWT or client credentials grant) and our SDKs, the client you get represents the service account for the app. For you to upload to a specific folder belonging to a user you can either 1) collaborate the service account to the folder https://github.com/box/box-windows-sdk-v2/blob/main/docs/collaborations.md#add-a-collaboration or 2) use the As-User header to make the upload call as the user https://github.com/box/box-windows-sdk-v2/blob/main/docs/authentication.md#as-user

Best regards,

Peter Christensen, Platform Solutions Engineer, Box