API Upload files not showing

  • 1
  • Problem
  • Updated 3 months ago
I am using a snippet of the sample Python (http://api.sharefile.com/rest/samples/python.aspx) to upload a file to a shared folder and getting back HTTP 200 with the response body = True

But when I go to the folder there is no file.

myFolderID : I get this from the "Folder details" 


Step 1.

https://[myTestDomain].sf-api.com/sf/v3/items([myFolderID])/Upload2?Method=streamed&FileName=test2.csv&...<br>
I have tried "Methods" standard & streamed


Step 2:
Using the "ChunkUri" in the response from step 1.  I post using multipart/form-data


The response is http 200 with body = true


Ouput of form post:


Data = ------------123456789
Content-Disposition: form-data; name="Filedata"; filename="test2.csv"
Content-Type: text/csv

fanem,lname
Shane,berk
------------123456789--
Photo of shaneB

shaneB

  • 1 Post
  • 0 Reply Likes

Posted 3 months ago

  • 1

Be the first to post a reply!