how to upload a file using file uploader for cmis workbench using file uploader?

I am using file uploader to upload the document using cmis connection. I have created a destination in neo trial account.

Also i am making an ajax call to upload the rest of data to the document as a service.


FileUploader id="fileUploader" name="myFileUpload" uploadUrl="/cmis/4f1abc71a1788bc6c05f54a5/root" width="400px" tooltip="Upload your file to the local server" uploadComplete="handleUploadComplete" change='onChangeDoc'/>


        var BASE64_MARKER = 'data:' + file.type + ';base64,';

        var reader = new FileReader();

        reader.onload = (function(theFile) {

            return function(evt) {

                var base64Index = + BASE64_MARKER.length;

                var base64 =;
        var data = {
            'propertyId[0]': 'cmis:objectTypeId',
            'propertyValue[0]': 'cmis:document',
            'propertyId[1]': 'cmis:name',
            'cmisaction': 'createDocument',
            'documentInputStream': base64
        var formData = new FormData();

        jQuery.each(data, function(key, value) {
            formData.append(key, value);

            type: 'POST',
            url: '/cmis/4f1abc71a1788bc6c05f54a5/root',
            data: formData,
            cache: false,
            contentType: false,
            processData: false,
            success: function(response) {
      "File Uploaded Successfully");
            error: function(error) {
      "File Uploaded Unsuccessfully");




The document is uploaded but the content is not being uploaded.


{ exception: "constraint", message: "No content available: objectid = px7goMt94zMxekyiUqQQBPWQd63-TYivo90adO1Eyxk repositoryid = 4f1abc71a1788bc6c05f54a5" }

Can anyone please help me here?