Skip to main content

All Questions

Filter by
Sorted by
Tagged with
7 votes
7 answers
15k views

uploading files in contentVersion using lightning component

I am developing a lightning component to upload files in the contentVersion object. I used this site as a reference: http://peterknolle.com/file-upload-lightning-component/ I was able to ...
Muzammil Bajaria's user avatar
2 votes
1 answer
3k views

How to upload a ContentVersion with lightning component?

I'm trying to use simple apex class and simple controller like a test. But can't upload ContentVersion. What is wrong here? handleFileSelected: function(component, event, helper) { let files = ...
MichaelLev19's user avatar
1 vote
1 answer
3k views

"No preview available" after uploading ContentVersion with Lightning

I get my test image in files, but can't to see the preview. How can I fix that? @AuraEnabled public static void save(String resumeId, String versionData){ ContentVersion ...
user60684's user avatar
  • 163
1 vote
0 answers
485 views

custom files related list component not reflecting new files upload

I have a custom lightning component that displays further details from the contentVersion. the customer requirement is to display both, the standard files related list and my custom cmp. now, when the ...
yuval boim's user avatar
0 votes
1 answer
2k views

Preview attached pdf/doc files in lightning component

I have a requirement wherein i need to display uploaded files as preview in a lightning component. I have tried it with the below code but was unsuccessfull: Lightning Component: <aura:component ...
Rohit's user avatar
  • 1
0 votes
1 answer
2k views

unrecognized base64 character apex

I converted a pdf file in base64 with javascript. function convertToBase64() { //Read File var selectedFile = document.getElementById("inputFile").files; var cvfiles = document....
Ach Jiren's user avatar
0 votes
1 answer
99 views

Related Files Component

I have a component and apex controller that calls/displays all the related files on a record. How can I filter the returned files by a field that is set on ContentVersion? ie. only show files if ...
Brandon's user avatar