Use attachment to upload files:
The uploaded content is stored in the attachment object of SF.
Use the <Apex: inputfile> component to upload files:
The uploaded content is stored in the Document Object of SF.
Use the library in the content app in SF to store the content file:
The uploaded files will be stored in the contentworkspace object (Library) and contentversion object (content) for specific file content (including binary files, etc. However, it requires a contententid .).
Contentdocument object, which cannot be created manually. Method 3: After the file is uploaded, the corresponding contentdoucumnetid is automatically generated.
Note: use of content app:
First, check the three check boxes: salesforce CRM content user, receive Salesforce CRM content email alerts, and receive Salesforce CRM content alerts as daily diges, set to true.
This article is from the "prodigal_k" blog and will not be reproduced!