File not uploading
I'm writing a python script to upload files to a box enterprise account, and I think that I have everything set up correctly. I created an app from the developer console and got a config file from there, and I also gave that app admin access. Within my python file, I am using the boxsdk(JWT). I authenticate from the config file that was generated in the developer console. When I run the python file, I get no errors, but the file I'm trying to upload does not show up in my box account. If I run it again and try and upload a file with the same name, I get a 409 response, or name already in use error. The file is getting uploaded somewhere, I'm just not sure where its going. Any advice is appreciated. Thank you
-
Update: We realize now that our client, when being instantiated, is representing the enterprise, therefore our files are being uploaded to our app. We were wondering how we can make this client object represent an app user, so the files uploaded go to the user's box account. Thanks
-
This is done in the sub claim of the JWT assertion. You will want to pass the user ID of the app user you'd like to act as and set the sub_type to user.
Best,
Kourtney
Box Technical Support Engineer
Please sign in to leave a comment.
Comments
2 comments