新しいBoxサポートサイトへようこそ。 変更点の詳細はこちらをご確認ください .

file upload failed. (API upload did not contain a file part)

新規投稿

コメント

6件のコメント

  • Alex Novotny

    May I see the code you are running? 

    Is there anything else you can share on what the differences are between when it works and when it doesn't? 

    0
    コメントアクション Permalink
  • BAE HYUNKU[PAUL BAE[JPG]]

    I found the reason.

    In header, "Content-Type: application/json;charset=UTF-8" is invalid.

    invalid content type cuased intermittent server response(400)

    remove invalid content type solve the problem.

    cc. thx, for asking Alex.

    0
    コメントアクション Permalink
  • Michael Gedigk

    Bae, can you show me an example of the JSON body, i'm having the same problem

    0
    コメントアクション Permalink
  • BAE HYUNKU[PAUL BAE[JPG]]

    It's 3month ago test. so I dont have example.

    but it's a plain file request, not complex.

    and above i said, my problem is invalid header value.

    AS-IS : Content-Type: application/json;charset=UTF-8

    TO-BE : Content-Type: application/json;

    in my case, that's all.

    I hope your issue will be resovled.

    0
    コメントアクション Permalink
  • Michael Gedigk
    ---1234567890 
    Content-Disposition: form-data; name="attributes" Content-Type: application/json 
    {    
    "name":"test upload.txt",     
    "parent":{        
    "id":"182678998283"             
    }, }
    ---1234567890 
    Content-Disposition: form-data; name="file"; filename="test upload.txt" 
    Content-Type: text/plain  
    VGhpcyBpcyBhIHRlc3Q= 
    ---1234567890" 
    0
    コメントアクション Permalink
  • Michael Gedigk

    Still not working.

     

    0
    コメントアクション Permalink

投稿コメントは受け付けていません。