Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8521601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:52:27+00:00 2026-06-11T06:52:27+00:00

After uploading a file with a name conflict with existing one, the server still

  • 0

After uploading a file with a name conflict with existing one, the server still responds with HTTP status code 201 Created. I had to parse the response body to know exactly whether it is really created or not. It sounds to me that I should be able to know the result of the operation just by the status code. So I am wondering if this is an intended behavior.

The following is the response I get

{
   "total_count":1,
   "entries":[
      {
     "type":"error",
     "status":409,
     "code":"item_name_in_use",
     "context_info":{
        "conflicts":[
           {
              "type":"file",
              "id":"2990420477",
              "sequence_id":"0",
              "etag":"1f64ca909178de30bc682a4ca2d14444719cf9a2",
              "name":"Extensions.pdf"
           }
        ]
     },
     "help_url":"http:\/\/developers.box.com\/docs\/#errors",
     "message":"Item with the same name already exists",
     "request_id":"1389504407503c7c1e8183c"
      }
   ]
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:52:29+00:00Added an answer on June 11, 2026 at 6:52 am

    We are in the process of changing this from a 200 to a 202. Later this week (or possibly tonight) we’ll roll out a change to make upload statuses be 202’s, to show that the upload request has been accepted. I’ll post a bit more on our blog to explain more details.

    The basic logic is that uploads can be sent in bulk, and the API call has to return you an array of upload statuses (stati?). If you only upload one file, you’ll get an array of 1, and you’ll have to dig into the array to see if you were successful or not. If you upload a group of files, then you’ll be digging into the array to find out the status of each file.

    You might ask: Why not collapse the status when there is only one file? Our thought there is that you’d have to implement 2 different code paths to deal with single vs bulk-upload, and it would be easier to just write the code once to handle uploads either way.

    Hope that helps. Let us know if you see unexpected behavior after we flip the error code over from the 200 to the 202.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At the moment, after uploading a file, the tmp file that gets created gets
Using Struts 2: when will the .tmp file - that gets created after uploading
Full edit: The scenario is that after uploading the file to the server via
I need to code for uploading a file from client to server. In client
Getting ERR_CONNECTION_RESET after more or less 2 minutes of uploading a rather big file
After uploading a file from the UI, how to create the a new directory
Here's the class I am working on. After uploading a file using a form,
I have a piece of code that allow users download file from server (document
I am uploading an image with a file name containing an umlaut via dragonfly
This sounds like a stupid question but, after uploading a file the file isnt

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.