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

Error uploading a file using Rest API from salesforce.

jagadeeswari Gubbala


Error uploading a file using Rest API from salesforce.

I am able to connect salesforce to sharefile. get access tokens, get folder details etc..

File upload is two step process:

step one is working which is sending a request to file upload with file name and file size then share file return a url where the file should be upload.

step two is uploading the file to the chunkurl returned by sharefile i.e is failing.


Below is sample  header parameters we are passing.


 req4.setHeader('Content-Type', 'multipart/form-data; boundary=' + separationString);
req4.setHeader('Content-Length', '150');
String body = EncodingUtil.base64Encode(Blob.valueOf(fileContent));

Below is the Error returned.
ERROR: System error occurred

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...