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

Network error when using the official uploader UI

New post

Comments

5 comments

  • tonyjin

    Hello oreolek, do you have some sample code for your use case? You can also try plugging in your developer token and folder ID into the sample CodePen here: https://codepen.io/box-platform/pen/QvqGwr

     

    The first call to https://upload.box.com/api/2.0/files/content is correct since that's how the Box Upload File API works (https://developer.box.com/reference#upload-a-file). The preflight call checks whether the file you want to upload will be accepted by Box before you have to send the bytes over the wire.

    0
    Comment actions Permalink
  • oreolek

    Tried it on CodePen (folderId: 0). Still a network error.

    0
    Comment actions Permalink
  • tonyjin

    Two possibilities that I can think of:

     

    0
    Comment actions Permalink
  • oreolek

    Added the domains to CORS and converted folder ID to string. I even changed my Internet provider to open all ports and get a white IP.

    Still a network error.

    0
    Comment actions Permalink
  • tonyjin

    That's unfortunate. Do you mind sharing a screencast of your process with the network panel open? Otherwise a screenshot of the network error with the network panel and console logs both visible works as well.

     

    Example:

    2017-08-28_11-21-59.png

    0
    Comment actions Permalink

Please sign in to leave a comment.