Jump to content
Welcome to our new Citrix community!
  • 0

Cannot Upload file through the API. No error given


Michael Kinder

Question

I am using Postman to try and upload a file to my personal Sharefile folders using the API. When I run the query, I get a status code of 200 OK, but the file never appears in the designated folder.

 

This the URL I am using:

https://cshco.sf-api.com/sf/v3/Items(<folderId>)/Upload

This is what I am passing in the body:

Name			    Value

method 				standard
fileName 			C:/<filename>.log

Here is the response:

{
"Method": "Standard",
"ChunkUri": "https://storage-ec2-949.sharefile.com/upload.aspx?uploadid=40bc8245-e3b1-4c92-b5c5-ee6b3df6a19d&cid=NIV1mTluPUSaPlSHKgJs4w&tool=apiv3&batchid=26aeddd1-6636-4abf-8381-debf9f9facb0&encparams=OuRvsvOOWwHAU1yCnQaLQPsJR0wTM7mw_7VAgsY6h71ykU38aDlGDYh0jKTtpaKB5J7WKVYlPa7q3xJ0vvRmJ4AoyTNkoVmSxlMiIVMs_ZXX9bmbLPAGAO6zAyNtC63mBzRztUgjfFuNjA4LEawMgHiqu_hmmC-vnbWaHIv-yvYiT9ApB-peeTNKn9y9Gt68jgcmR8TNUUIGbZne87xeME7nr-g8P_yJUavQhjaZp__Ut4xhqtYFqAE0Iu45UuDMh7tLWvkYAq2wrdrnAFFuV37PjeSXj0mhanvFsPNUk_XuD5U5clCO24IamdNBy2MHyPNVSqfl_TAqRxsR71vsiJeJKuXuDDkTo24zMfVSKzySTkMEoza68rPwYEgufEMe2peh51_BUeJnW8ZfI3ANdIYVWTITAQbQmpeXmxCCrW8kMcN7sSddEyWDi6jgyS66O08zh2OoE_SDiIgJNkqH0ivs4_hVuyRiwXoK_VV_X09qrxQycu5qRj4nK5IEF6UOyLPZCEAwqLq4h0puVyVrz2Y4Nsmdi8Fqrx60xCvyFJwkyFBxXtFpbauBcWtolq3bR45Q5FUafaOo-rxRZZzxy2aMsmj9_poYbQ0VY3jCPkIgp6d1Y9dnnyhZvZGXEt4upLAZvgIBHhTY3JzrXEwUgtw25l62F0DtxuG2h3qal1B4dPsgD4m6ClFyVyQix5U1zg$$&zoneid=zpfed2b3f5-fbbf-4ed5-9a58-f1bd888f01&zsid=EF&h=jXPU4JBqa4kQOTTXeNYCLPDmVwE5mylPBSsLY4BYKP4%3D",
"ProgressData": "40bc8245-e3b1-4c92-b5c5-ee6b3df6a19d%2chttps%3a%2f%2fstorage-ec2-949.sharefile.com%2fuploadstatus.ashx%2cAmazon-Standard%2czpfed2b3f5-fbbf-4ed5-9a58-f1bd888f01%2cyGOkaVedvdgv3HQxzhRRb2XH1twrP8%2bSI17QV4bG%2fMU%3d%2cEF",
"IsResume": false,
"ResumeIndex": 0,
"ResumeOffset": 0,
"ResumeFileHash": "",
"MaxNumberOfThreads": 4,
"CanAcceptParamsInHeaders": false,
"odata.metadata": "https://cshco.sf-api.com/sf/v3/$metadata#UploadSpecification/ShareFile.Api.Models.UploadSpecification@Element",
"odata.type": "ShareFile.Api.Models.UploadSpecification"
}

What am I doing wrong?

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...