Stack Exchange Network

Stack Exchange network consists of 174 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
1answer
14 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
15 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 "...
0
votes
1answer
20 views

Error displaying custom field in Lightning Component

I'm trying to create a lightning component that will display the list of related Files on a record, as well as their metadata. My code currently pulls the file names, file type, and description. ...
0
votes
0answers
25 views

How to download the excel from visual force page?

I have uploaded CSV file in visualforce page,When i click on the Download button then download the excel file,this is actual scenario,But here button also downloading along with excel file,How to ...
0
votes
0answers
37 views

Update custom field on File upload

I'm using a simple lightning component to upload a file to a record. I would like for the file to uploaded with a certain custom field set. (ie. on upload, set "File Status" to "Signed" - this would ...
1
vote
1answer
35 views

How to upload and Read a text file input?

I'm trying to upload a file with Json text inside and preview it in a lightning component. I managed to get all file text to show only in console or Alert and I'm not able to set and display the ...
0
votes
0answers
35 views

How to force download of a dynamically generated file in Visualforce

I have a commandLink whose action is set to an Apex function that creates a Document and returns its ID. <apex:commandLink title="" action="{!createFile}" value="" type="hidden"> <button ...
0
votes
1answer
18 views

Select picklist value on File upload

Is it possible to create a Lightning Component that allows the user to upload a File and then select a picklist option to categorize that file? For example - http://sfdcmonkey.com/2017/09/25/file-...
0
votes
2answers
44 views

How to get IP of someone downloading files

I'm writing a class that implements Sfc.ContentDownloadHandlerFactory and I want to know on each download attempt, the IP of the person who downloaded the file. I'm aware of UserInfo.getUserId() but ...
2
votes
0answers
33 views

Generate PDF preview from APEX class

What I'm doing is retrieving a PDF and save that PDF into the notes & attachment of my current object. Everything works fine, I'm able to get the base 64 encoding of the PDF, convert it and save ...
0
votes
0answers
43 views

Public Link Sharing - Can I create a URL for download file only (no preview)

Today if I create a public link to a file: The url link opens the file previewer: QUESTION Can I create a link that downloads the file immediately without the previewer?
0
votes
1answer
28 views

How to store/search bulk contact lists?

I have a client doing SMS outreach with bulk lists, purchased in csv format. Each record in the list is only a few fields, but the list may contain 25K rows. And they're using a lot of these lists. ...
1
vote
1answer
30 views

How to access files in Public Sites?

I am using below query to get link for files [SELECT ContentDocumentId, LinkedEntityId FROM ContentDocumentLink where LinkedEntityId in (SELECT Id FROM Custom_Object__c where Parent__c != null)] ...
0
votes
1answer
22 views

Is it possible when adding an inputfile to show the filesize as text

I have a simple inputfile tag. Is it possible to to show the filesize after selection Visualforce <apex:inputFile id="inputfile" value="{!newAtt.body}" filename="{!newAtt.name}"/><br/> ...
2
votes
1answer
24 views

how to abort upload file when filesize is too large

I have a apex:inputFile tag to upload a file I gave it an id to throw an error if the filesize exceeds 500k. The error is thrown but still I can see in my left corner of my chrome browser an attempt ...
1
vote
2answers
74 views

Community user cannot download file

I am using an old portal for my customers, with customer community user licenses. In the portal, my users should upload files and then download the files that they have uploaded. The portal is ...
0
votes
1answer
77 views

lightning:fileCard No Preview Available or What permissions am I missing?

Here's my code: <lightning:layoutItem padding="around-small"> <lightning:fileCard fileId="069XXXXXXXXXXXX" description="logo"/> </lightning:layoutItem> I'm using (for now) a ...
0
votes
1answer
29 views

How to add download functionality for related Files of a particular object record on custom VF Site page?

On Salesforce standard page for a particular record, all related Notes, Attachments and Files are shown under "Notes & Attachments section". I have a similar use case where, where on a VF site ...
0
votes
3answers
54 views

Is it possible to create a button to download all files attached to a record? [closed]

Currently, we have a page on our community in which people can go in and look at our cases and see and download all of the files attached to the case. That said, we recently got a request to create a ...
3
votes
0answers
20 views

Trying to save image from Twilio MMS to Files?

I've built an SMS/MMS Lightning Component, which displays incoming MMS images in a thumbnail, and if you click it, a full-size modal display. Now I want to add the option to Save to Files... For the ...
0
votes
1answer
39 views

Community Users are not able to view files

We have moved all our Notes and Attachment to FIles in lightning, Now none of our Community plus users are able to view the files from their community login. We have added files related list on page ...
1
vote
0answers
50 views

Cannot preview PDF publicly shared file

I have a couple of PDF files that have public links that are no longer showing a file preview.  Any thoughts why or what I can do to fix this problem.  I have refreshed the preview link & also re-...
0
votes
1answer
50 views

How can i upload files

I have created simple component to upload files with following code: <aura:component implements="force:appHostable" controller="BeetleEyeAssets"> <aura:attribute name="accept" type="List" ...
2
votes
1answer
71 views

Upload Attachments to Files Related list using Apex

When user attaches files on Notes and Attachments related list from Salesforce UI then files gets attached to Files and Notes and Attachments related list. But when I do it from vf page/apex then it ...
2
votes
1answer
79 views

How to Upload a File to a specific Library Folder using Apex?

I am trying to save a Visualforce page as a PDF file to a Library folder in our Salesforce org. I have been unable to figure out how to save this new PDF file to a specific Library folder. I tried ...
2
votes
0answers
55 views

Files not attached when forwarding emails (Classic)

In classic when you forward an email containing attachments, they are automatically included on the email; you see them below the email editor in the Attachments section. This is not the case for ...
0
votes
1answer
65 views

Disable access to “Delete”, “Edit”, “Upload New Version” on the file previewer

I use lightning:fileCard and e.lightning:openFiles components in my lightning component (that I use inside a community) In 1 stage on my component, I wish to display a file preview, and to not give ...
1
vote
0answers
13 views

Dropbox File Management Alternative for Salesforce

Trying to find an external file management app like Dropbox which is integrated with Salesforce. Unfortunately, Dropbox for Salesforce has some really bad reviews in Appexchange(2.7 rating :-( ). What ...
0
votes
1answer
20 views

APEX Class to transfer Files to External Cloud Storage

Can anyone point me to the SF documentation to write/ transfer files uploaded to SF to an external cloud storage system e.g. GDrive. I have got an OAuth Script with all the client Key and Private Key ...
0
votes
1answer
41 views

Streaming API to transfer FILES to online cloud storage

Using the SF documentation I have created a custom object with the FILES related list. Using workbench I can successfully see that it receives a message when a new record on that new object is ...
2
votes
4answers
218 views

Sending File to Apex class from Lightning component

I need to send a file of max size 25 mb to my server side controller function from lightning component. I need to pass values to server, create record and then assign the file to it I am using of ...
0
votes
0answers
22 views

Upload to Files from Web 2 Lead

We have a custom Web2Lead process and are currently using the native Attachment REST Web Service to upload files and attach them to the Notes and Attachments object. We now require to upload them to ...
0
votes
0answers
37 views

Write files to Google Drive with External Data Storage

Using this tutorial I have connected my SF instance to Google Drive. I can only view the files --- is there a way to write to drive too? If it can be done, can it be added on a related list on ...
0
votes
2answers
39 views

Option to share a file uploaded privately with a Community User

When i upload a file under Files Tab we have share option. But we can only share with internal users...but not with partner users. I was wondering if its possible to share file with a partner ...
0
votes
1answer
31 views

Disabling 'Populate Custom Fields When Uploading Files' feature

I'm using lightning:fileUpload component to load files, and I came accross a new, unnecessary feature. Recently when adding file, the button on popup window displaying uploading status changed from '...
0
votes
1answer
190 views

Adding attachments in apex, convert the code to add Files

I was wondering if there is a simple to solve my issue, previously in apex one of the automation process was adding attachments from email, please see the code below. private void ...
0
votes
1answer
52 views

Can we export data extension records daily and upload on a 3rd party SFTP?

Can we export data extension records daily and upload on a 3rd party SFTP? I understand that file can be uploaded to marketing cloud FTP BUT in this case, file needs to be provided to 3rd party and ...
0
votes
1answer
101 views

Disable sharing of files through Public link

In winter 19 release, salesforce came up with sharing files to anyone(those who has view access) using "Public Link" option. However, I don't want this option to be visible/enabled for my users. Can ...
0
votes
1answer
43 views

How do I build a related list against a Files Library (in Lightning)

I want in the related tab of a record to have a Library related list shows all the files in a library? Is that possible?
0
votes
0answers
17 views

Get Id of File from Record Related List

I am trying to query a record for its list of File Id's from its related list. Here is the query I am using: List<Example__c> objects = [SELECT Id, (SELECT ContentDocumentId FROM ...
1
vote
0answers
11 views

Need clarification for the Copy sharing mode of Files Connect

We want to connect Google Drive as a Connected Source. We want also share files with external users. That's why Reference sharing mode is not an option in our case. While reading the documentation: ...
2
votes
1answer
116 views

Need to give guest profile access to documents

I need to give the guest user profile access to view files/documents (PDF, Excel, Word, etc.). I have a public Customer Service/Napili community with Knowledge set up. Guest users can see the ...
0
votes
1answer
220 views

What's the difference between “Files” and “Notes & Attachments” related Lists? [duplicate]

What's the difference between "Files" and "Notes & Attachments" related Lists? They seem to be a carbon copy of each other whenever I upload a file to one or the other.
0
votes
1answer
45 views

What event fire when you attach a file/attachment on the record page?

I've created a lightning component that shows a table of all contentversions related to the record detail page you are on. However, if upload/add a new file using the "Files" related list, it doesn't ...
2
votes
1answer
46 views

What is the difference between these 2 download URLs?

I have seen that developers use 2 different formulas for the users to download a file/attachment. 1st - HYPERLINK("servlet/servlet.FileDownload?file=" + recordId , Name + "<valid ...
1
vote
2answers
206 views

Unable to extract bulk ContentVersion and ContentDocumentLink data using Salesforce API

Use Case: Transfer existing (and OOTB) Files that are linked with couple of custom objects (CO 1 & 2) to another Custom object (CO X)? The new custom object (CO X) has look up fields for CO 1 &...
0
votes
2answers
104 views

Image dimensions validation with Lightning FileUpload component

We need to give an ability to user to upload an image related to Account in a Lightning Component. This can be easily done with standard lightning:fileUpload component without any need to send file ...
1
vote
0answers
24 views

Share files publicly via Saleforce Files

BACKGROUND We are now deciding if storing files inside Salesforce would give us any benefit comparing to 3rd party providers. The main requirements are (1) allow big files (up to 1 GB); (2) Allow for ...
0
votes
0answers
93 views

Is downloading multiple files officially supported by Salesforce in lightning?

The url "hack" to use /sfc/servlet.shepherd/version/download/ has been documented in a salesforce blog about visualforce pages showing images, however I can't find anywhere where this is officially ...
1
vote
1answer
25 views

Getting info on files that were shared between dates [closed]

I'm fairly new to Salesforce API, I'm trying to get information on files that were shared between dates. I would like to know how to retrieve this info using REST API. Is it even possible to query ...