Uploading file in contentVersion using lightning component
I am developing a lightning component to upload files in a contentversion object. I am referring to this site : http://webcache.googleusercontent.com/search?q=cache:yDEYXecmDHMJ:peterknolle.com/file-upload-lightning-component/+&cd=1&hl=en&ct=clnk&gl=in I was successful uploading files up to 3 MB without chunking but I am facing some issues in chunking the file to upload the large files. Wherever I upload the file, it gives me the following error : System.StringException: Unrecognized base64 character: % I am attaching code for the helper class and apex controller. I am also trying to upload the large files using the CHUNKING but it was not working for the ContentVersion because by default IsMajorVersion field in the ContentVersion object is TRUE and it's not updatable also. So While inserting the ContentVersion makes IsMajorVersion false so CHUNKING will work in the ContentVersion object . ContentVersion cVersion = new Co...