I am using box-java-sdk v2.25.1 and I am trying to upload a file to box account via the OAuth2 + JWT application that i have created, for which I am trying to do this:
BoxFolder rootFolder = BoxFolder.getRootFolder(boxClient);
FileInputStream stream = new FileInputStream("C:\\files\\pic.svg");
BoxFile.Info newFileInfo = rootFolder.uploadFile(stream, "image.svg");
The difference here is when I am creating the "boxClient" like this I am able to see the file that above code just uploaded under "All Files" section:
boxClient = BoxDeveloperEditionAPIConnection.getAppUserConnection(userId, boxConfig, accessTokenCache);
But when I am creating the "boxClient" like this I can not see the file that i just uploaded, although the upload went well without any error/exception:
boxClient = BoxDeveloperEditionAPIConnection.getAppEnterpriseConnection(enterpriseId, clientId, clientSecret, jwtPreferences, accessTokenCache);
So what is the difference between "getAppEnterpriseConnection" and "getAppUserConnection"? Where I can actually see the file that I uploaded using "getAppEnterpriseConnection" API?
Thanks in advance!