Edit file using the Android SAF(storage access framework)

New post


1 comment

  • jcleblanc

    Hi ,


    Can you supply the code that you're using to access Box? It might help to dig down deeper. From the error this looks like an Android SAF issue rather than Box, so it may be best to reach out via their forums with the inquiry, since the same code works with files loaded directly in Box.


    A few shots in the dark to take a look at though:

    1. Similar errors were reported with image consumption, and switching from getting file by path to opening an input stream seemed to solve the problem - SO thread here.
    2. Ensure that the Box access token that you're using has write access to the file. I'm not sure how you're verifying this currently but a common problem when accessing files from Box is using an access token that's scoped for a user (e.g. a service account) that doesn't have appropriate permission to that file. For instance, it may have read access but not write. 
    3. If you're using a Box app, verify that you have all appropriate read / write scopes enabled.

    We can dig in deeper with additional detail / code if none of the above works, as they're all stabs in the dark. 

    Comment actions Permalink

Please sign in to leave a comment.