Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [files]

The tag has no usage guidance.

0
votes
0answers
13 views

Display Salesforce File in lightning component

I see from this question that you can display an image in a lightning component. Will this work for a pdf file? Using the exact same code, it doesn't appear so. I did try using lightning:fileCard to ...
0
votes
1answer
43 views

Downloadlink not working for Guest user site

I have created a link on a visualforcepage for Guest user.The link shows correctly with the correct id. When I try to download the link a new page is opened with the error: urlsite/ex/...
0
votes
1answer
31 views

How to generate an external downloadlink for files

I have created a visualforce page (site) with a dowloadlink from files. I can use this when I am logged in into Salesforce. I want to achieve this for external users by a site. In salesforce It is ...
0
votes
0answers
22 views

Attachment's Name field changes after converting to Lightning Files

I am using the tool Magic Mover to migrate Classic Attachments to Lightning files. However, after conversion of an Attachment to a Lightning file, the Attachment's 'Name' field changes. The ...
2
votes
1answer
30 views

Create and Link Document to multiple records using rest api

From the docs I've successfully been able to create a document in Salesforce using Inserting a New Document. I'd like to be able to link this document to multiple cases. From what I understand, it ...
0
votes
0answers
16 views

Why I Cant see 'Upload Files' button in Mobile?

I have a lightning community and I can upload files from the computer: When I enter with the same User from web-browser but from Mobile I cant see the upload button:
1
vote
0answers
36 views

ContentVersion file not viewable to Guest Site User

I have Salesforce Files associated with a Contact that I'd like to pluck out the ContentVersion Id in order to display the image on a public-facing Visualforce page (via Sites): <!-- This is ...
3
votes
1answer
86 views

Read-only permissions on Files

When a user is looking at a case or contact, I'd like them to only see Files associated to the record, but not have the ability to upload a File. Right now, the Standard Files Related List allows for ...
2
votes
1answer
25 views

Files and Libraries As Lightning Component

I want to include a Visualforce component on a Lightning Record Page that routes to a specific file library. As neither Files nor Libraries are Objects, I am having some trouble developing this ...
2
votes
1answer
24 views

Is there a way to hide Files from 'Files & Attachments' related list?

I think this is impossible but is there any way to hide Files in Notes & Attachments relatedlist of classic view? We moved only Admins to Lightning and wanted to roll out to other users slowly. ...
1
vote
0answers
24 views

Can Community Guest users delete the owned file?

Much appreciate if anyone can help me with the below. I have a community where guest users update some information and upload files with a flow. In the flow, users can delete files they uploaded once ...
2
votes
0answers
48 views

Lightning Web Components file preview does not work on mobile version

I created a component in LWC which uses standard Salesforce file preview. It is perfectly working on desktop but nothing happens when I press file name on mobile version. My html code is below: &...
0
votes
0answers
50 views

How to permanently delete Salesforce File ID

Currently have an upload system using Lightning components, here's the code: <lightning:fileUpload name="additionalFile" label="Upload up to 4 additional photos to include in your campaign page ...
0
votes
2answers
35 views

Which object should be used in storing files?

The Attachment object looks like the correct choice if you have a file you want to relate to only one record. ContentDocument with ContentDocumentLink looks good if you have a single file you want to ...
2
votes
0answers
43 views

How can I allow the user to Populate Custom Fields When Uploading Files?

Update: I managed to get the dialog to display but the implementation feels like a bug workaround. See update below. How can I get this Add File Details dialog to display allowing the user to add ...
0
votes
2answers
42 views

How to make a Salesforce file private using Apex

My requirement is to make a Salesforce file private using Apex. I tried to update the PublishStatus field (on ContentDocument), but this field is not writable. Any idea?
0
votes
0answers
37 views

View State Error Uploading Files

I have a visualforce page that allows for uploading multiple files at one time (up to 10) I have tested it several times in the sandbox and had no issues. However, I am now getting intermittent view ...
0
votes
0answers
15 views

All Files Link not visible in Lightning

We wanted to convert the Documents to Files as Documents are not available in Lightning. The Documents were created inside a folder and were shared with all the users hence, we wanted to provide same ...
0
votes
0answers
26 views

Android SDK FileRequests appends incorrect base to path for “connect/files”

Salesforce SDK version: 7.0.0 API version: v42.0 Devices: only on all Androids I have some photo document IDs that I can verify exist. They are downloadable on iOS using the exact same strategy, ...
0
votes
1answer
23 views

Link to a library directory in Files in Lightning Experience

I am doing a Lightning remediation for a client moving over from Classic. They have a home page component that has a link pointing to a library directory in Files, not a specific File, but just a ...
0
votes
1answer
17 views

FirstPublishLocationId empty after new File version?

When uploading a file to a record, the FirstPublishLocationId of the file is set to the id of the record. When uploading a new version of that file, and running a query on the file in dev console, ...
0
votes
1answer
18 views

Bulk Import of Files to SFDC

In the distant past I have migrated thousands of files to Salesforce as 'Attachments'. I am currently on a project where I need to migrate thousands of files to Salesforce as 'Files' - this will be ...
0
votes
0answers
21 views

Image Formula Fields in HTML Email Template

Trying to put a Formula Field Image on an Email template so to have images unique to the Account. So Email templates replaces & with &amp; thus the parameters in externally shared links from ...
0
votes
1answer
29 views

Conga Composer: Query Salesforce Files from Products to Opportunity

A button on an opportunity should bring all salesforce files from the related products. Trying to figure out the correct query for this What i have found so far is the query for salesforce files: ...
0
votes
0answers
19 views

Permission Error when Auto-Sharing Salesforce File with Apex Trigger

I am trying to create an Apex trigger that automatically shares an attached Salesforce File with a user related to the record upon which the File was uploaded. I believe I have created a working code ...
0
votes
1answer
23 views

Remove File Delete Permission

I have googled a lot but do not found any supportive document for guidance. I have a standard Files upload option under Task(Standard) object. We have a scenario like users will not have permission to ...
0
votes
2answers
57 views

Access PDF File from the Files Tab

When I'm trying to access a pdf file from the files tab, I'm running into the below issue. Message: Cross-origin redirection to https://name-space--c.documentforce.com/sfc/servlet.shepherd/document/...
0
votes
0answers
14 views

Files accessibility under Accounts

We are migrating to Lightning and we just converted Attachments to Files. Now we recently noticed that, Files associated to Opportunities are not available to view under Accounts which was default ...
0
votes
0answers
18 views

Can Static-Resource Files be Listed via Apex? [duplicate]

Is there a way to programmatically list the files in an archive static resource (i.e. .zip)? I know it's been asked whether a static resource can be accessed via Apex, but only to then specify a ...
0
votes
1answer
28 views

File Transfer Button in Live Agent Not Working

We've suddenly started to see an issue in Live Agent where, if an agent requests a File Transfer, the button presented to the user to upload the file does nothing when clicked. It'll get the focus ...
0
votes
2answers
29 views

Share a File Between Communities

I have files that were uploaded to the Asset Library for a Community by adding them to the Rich Content component on a Community page. When I look at the File's sharing settings, I can see that it is ...
0
votes
1answer
18 views

Attach Files to a Big Object record

I would like to associate Files with Big Object records. Documentation inference implies this is not technically possible... if a Big Object could be a "LinkedEntityId" I imagine it would have been ...
0
votes
0answers
25 views

Launch File Upload from Visualforce Page

I'm trying to figure out how I can add a button to my visualforce page that will open the same file upload box that you get when you click contribute from the library tab. I also want to link that ...
0
votes
0answers
89 views

Limit file size to 2 MB for fileUpload Lightning compoennt

I have a requirement where i need to restrict the user to not upload the file size more than 2 MB. We are using lightning:fileUpload , for which i don't see any size parameter. We are uploading file ...
0
votes
1answer
47 views

Files related list on force.com site

I have a related list of files "AttachedContentDocuments" on a VF page (using the tag), which is accessed through a force.com site. This page works as expected for the logged in user. But when ...
0
votes
1answer
22 views

Not getting a value from SOQL query as expected when using a bind variable

public class ELOUpload_Class { public static void ELOUpload_Method1 (List<ContentDocument> lstContentDoc) { //Create a set of all the incoming IDs Set<Id> contDocId = ...
0
votes
0answers
63 views

Add Upload File button to a custom object

I am working on an assignment where I built a custom object on top of files (ContentVersion, ContentDocumentLink, ContentDocument). Since the customizability of files is limited in Salesforce, we are ...
-1
votes
1answer
36 views

Deploy files from one Org to Another [closed]

I have an object that has a 'Files' list in the 'Related' tab and have attached a Microsoft Word document to that list in my testing org. Is it possible to deploy that file so I don't have to manually ...
0
votes
1answer
78 views

ContentDocumentLink filter not working- Trailhead Conference Management App

Im facing below error: Implementation restriction: ContentDocumentLink requires a filter by a single Id on ContentDocumentId or LinkedEntityId using the equals operator or multiple Id's using the IN ...
0
votes
1answer
93 views

Creating File and Linking to Object

I am working on replacing my attachments with Files. I have created an apex class to create the ContentVersion record but I have been unable to create the ContentDocumentLink object to link the ...
0
votes
0answers
21 views

Insert a record in custom object when attaching files in Salesforce

I am working on as assignment where I need to insert a record in a custom object (FileAttachment__c) when a file is uploaded under a Contact. When the file is uploaded, the custom object record needs ...
0
votes
1answer
25 views

Deleting an Asset file

I had an image in a rich text field in my Community. I was able to access the image file on the internet via the image's URL. I deleted the Asset File. However, it is still downloading when I ...
0
votes
0answers
22 views

Export actual files for Attachments on all Cases

My users have requested that I export all files that they have attached to Cases so that they can place them in a repository for non SalesForce users to access. In the past when I want to export ...
1
vote
0answers
78 views

Display a PDF in Salesforce from Blob data

For our project, we need to get a PDF via API from an external private filestore, and display it within a Lightning Component. With the blob that is returned, if I set that to the src of an iFrame, it ...
0
votes
1answer
127 views

How to upload large files in Lightning?

I am loading lightning page through visualforce page. I know Salesforce provides lightning tags for file upload but it does not work when you are loading lightning component through Visualforce page. ...
0
votes
1answer
26 views

Link files lead to new custom object

On Lead conversion I also create a new object to which I map several fields of the lead trough processbuilder. I also want to pass the files from the lead to the new custom object. I am trying to do a ...
0
votes
0answers
19 views

Is it possible to open a pdf/word document to a specific page or section with Lighning?

I can generate a preview of a file using e.lightning:openFiles event, but there are no parameters or options that will allow me to open the file up to a specific page or section. Is there anyway this ...
0
votes
1answer
25 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 ...
0
votes
1answer
28 views

Validation rule that flags if File is not present on custom object?

Requirement is to prevent saving of a record if a File (in this case, a quote) is not attached. Is this accomplishable declaratively?
1
vote
0answers
56 views

Unable to captureStream from a video element with salesforce content as the video source

We're looking to stream content in a HTML tag through a video chat service, TokBox. This content is currently housed in Salesforce Files, and we're trying to access this content via the "...