Questions tagged [files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Hide some Tabs in Communities Files Component?

Does anyone know of a way to hide the top 4 tabs in the Communities Files component? I only want users to see the "Libraries" tab. Or even just to make that the default/top tab. See ...
0
votes
1answer
33 views

Drag Drop from Popup not working on Mozilla Firefox and Internet Explorer for lightning-input type=“file” in LWC

I have the following code for File input in LWC. The drag-drop works fine for chrome, edge browser. But for Mozilla Firefox browser and Internet Explorer, If we select the button and open the popup ...
0
votes
1answer
26 views

Lightning Component - Why my data doesn't show in my Utility Bar?

I'm trying to show Files Uploaded in Salesforce File. I created a Folder in the Libraries part and uploaded the Files inside of it. So i made a custom aura component to show those files. So i made my ...
1
vote
3answers
42 views

How to see anonymous code debug logs in visual studio code?

I installed the Salesforce CLI and the Salesforce Salesforce Extension Pack on Visual Studio Code because it's easier to write code than the Developer Console but I got a problem. I want to get the ...
0
votes
1answer
15 views

Can an SObject link to a file?

Is it currently natively possible to somehow have an SObject that links to a document, attachment, or salesforce file? Sure, you can always have a field that just includes the id of the object as text ...
0
votes
0answers
16 views

Attach Files to Email Message when in Draft State

I am bulk uploading files into our SFDC org. I am following this guide: https://www.simplysfdc.com/2018/02/salesforce-mass-upload-files-to-files.html When I upload the file that is attached to an ...
0
votes
1answer
18 views

Can I save any files that I have modified while running a program on Heroku?

I'm running a discord bot which uses the quick.db npm package. Quick.db saves to a .sqlite file, which was handy since I could edit some code and restart the program without the file being completely ...
0
votes
1answer
32 views

Changing the UI and text display of lightning-input type=“file”

I want to change the UI of lightning-input type=" file". Current UI Look something like this: But, I want the UI to be something like this: Is it possible to change the styling and apply ...
0
votes
0answers
19 views

Attached File Types

What is the best way to characterize the files that are attached? For example, i want when i upload a file on account record to declare that this is "Identity Copy". How could this be done ?
0
votes
1answer
14 views

EmailMessage HasAttachment and Files

Is there a way to create an EmailMessage record with an associated File/ContentVersion AND set HasAttachment when created via Apex? Same example code in this question, however the only answer there is ...
0
votes
0answers
23 views

Upload Visualforce PDF to Files Related List Using Apex (getContentAsPdf() and Future Method Issue)

I'm currently trying to upload my Visualforce-rendered PDF to the Files related list of my record. I understand PageReference and getContentAsPDF() both behave as Callouts and thus needs to be ...
0
votes
0answers
13 views

Lightning component to show a file on Visualforce page

We use forceContent:filePreview lightning component to show a file preview on our custom Visualforce page. This is the code: $Lightning.use("AVTRRT:LightningOutApp", function () { $...
0
votes
0answers
9 views

Disable Chatter for a profile while allowing users to upload Files

We have enabled Profile-Based Rollout of Chatter and have an Internal user profile X which does not have Chatter enabled. However, we want the users with profile X to be able to upload files in the ...
0
votes
0answers
23 views

upload live camera capture photos only using lightning-file-upload

I have a requirement to upload documents from camera only and not from phone's gallery/album or something like i can check the created/lastmodified date of the file to check if it is captured at that ...
0
votes
1answer
28 views

Where can I view attachments that I've uploaded to salesforce using a REST api?

response = requests.post('https://%s.salesforce.com/services/data/v29.0/sobjects/Attachment/' % instance, headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer %s' % sessionId },...
0
votes
0answers
16 views

Can Marketing Cloud transfer a file to a OneDrive account?

When I pass files to vendors, normally I drop then to a SFTP. The request I have now is can I drop a file to a OneDrive Account. Can a OneDrive Account be set up as a File Location for Marketing ...
1
vote
2answers
51 views

upload a file in VF page to content Version is broken

I have a huge and complex vf page (force.com site) - So I will try to explain my issue with an example instead publish here all the code - I hope it will be understanble: I want to upload a file from ...
0
votes
0answers
29 views

Fetch Document Blob value from files

I am trying to create an Apex REST API to get documents from "Files". I want to get the document as a binary/blob value. I used the Rest Explorer in Workbench and could figure out the query as: /...
0
votes
2answers
23 views

Upload File into a Custom object and save into File related list

Need to upload a file in a VF page and the file should save in the Files related list of the Custom Object. Have tried with the following code but it is saving in the File object with no parent. Need ...
0
votes
1answer
47 views

Specify a fie path for External SFTP Marketing Cloud

I need to drop a file on an External SFTP from Marketing Cloud which I know I can do with a file transfer activity but I can only choose a pre-defined file destination. In that destination setup in ...
0
votes
0answers
25 views

ConnectApiException :The file you uploaded doesn't appear to be a valid image

I'm using this code to create a document and use it to get fullPhotoUrl field in a test class but I got the error : ConnectApiException :The file you uploaded doesn't appear to be a valid image could ...
1
vote
1answer
29 views

Retrieve Preview Image URL of Salesforce Image Files

I am trying to get the image addresses from Salesforce Files using the following query in workbench. There are thousand files, but no results are displaying. Select Id, ContentDocumentId, ...
0
votes
0answers
13 views

Performance of content-based Files/Notes versus the older Attachments/Notes?

We have a Visualforce that supports large numbers of Notes and Attachments (100+) that we have converted to use Content Objects via ContentDocumentLink. But the queries now run much slower. Are there ...
1
vote
1answer
35 views

Where is Share button on a file in community?

I have a question about file sharing in community. Basically, the question is why a community member (license: Customer Community Plus) doesn't see the Share option on the File List component? A ...
0
votes
1answer
13 views

How to emulate a File field in Salesforce?

I have a requirement to implement several file fields for a Custom Object, however as far as I know you cannot create 'file fields' and detect if they are null/not null and use them in business logic. ...
0
votes
0answers
9 views

Is it possible to copy feed item and case files from case object to its related Knowledge ARTICLE?

We have a development request from our client to set up KB in existing salesforce system there are many parts in this development . Part 1: Create knowledge article from case when a case status is ...
1
vote
0answers
76 views

How to upload a Salesforce File using REST API properly?

GET /services/data/v47.0/sobjects/ContentVersion/0000v00000MFIVgAAP/VersionData from this request I will get binary file content, but how can I use this content to recreate the file properly (using ...
1
vote
2answers
23 views

REST API call to fetch attachment from salesforce is showing Binary response. How can i covert this Binary response to the Original file?

I am trying to extract a file from Salesforce through REST API call. I am getting the Respone in Binary File. How can i covert this Binary response to the Original file?
2
votes
1answer
40 views

File saved using ContentVersion appears distorted or low quality

Using this link - Convert event.target.files into a JSON string I was able to get the file data. I form a JSON with like - {'fileName':xyz.jpeg,'file': <fileContent>} and pass it to an Apex ...
2
votes
1answer
263 views

Convert event.target.files into a JSON string

I am trying to send uploaded file via a JSON. However I am unable to send the file attribute directly in below way. <template> <div class="slds-p-around_medium lgc-bg"&...
0
votes
1answer
19 views

How to get get filesize by id inputfile component

How do I get get the filesize by id of the inputfile component into javascript. Currently I get the error checkIfEmpty is not defined. Visualforce <apex:repeat ...
2
votes
0answers
11 views

Are the community files values available in community code/components?

When setting up a community, these values can be set: It would be convenient if those values were accessible from code/components contained in the community e.g. for hints for users without the ...
0
votes
1answer
65 views

Reading data from csv file stored in salesforce files. Content size of 12mb

I have a requirement to upload the csv file of 12mb and read the content in it. Through Lightningfile upload component i am able to load the file in Salesofrce Files and here is the below link for ...
1
vote
0answers
21 views

How to get email attachments for classic users to come from Files rather than Classic Documents [closed]

When a user in the Salesforce Classic interface creates and email and wants to attach a file, Attachments from Classic users come from (Classic) Documents, Attachments from Lightning users come from ...
1
vote
0answers
41 views

Customize the Size of Lightning-File-Upload

I would like to customize the size of the lightning-file-upload so that the 'dotted'/drag-n-drop area is larger. I don't see any documentation on changing that. Here is an example of what I am ...
0
votes
0answers
12 views

Migration of Attachments to Files [duplicate]

We are moving towards Salesforce Lightning. As in Lightning, Attchments need to be stored in Files. What is the best way to move those attachments to files? There are few appExchange in the community,...
0
votes
0answers
34 views

How to get image link from DistributionPublicUrl (outside Salesforce)?

I need to display pictures outside salesforce so Im generating DistributionPublicUrl from ContentDistribution but the 'DistributionPublicUrl' its a page with the picture but its not the picture. Cant ...
0
votes
2answers
37 views

How can I mark a contentDocument or ContentDocumentLink?

I made a lightning web component to set if a content document it is approve or reject but I cant create any field in this objects... There is a way to mark if a Content document was approve or reject ...
0
votes
1answer
59 views

How to delete Files via Developer Console

Is there an easy way to delete all files via Apex - developer console? Something like delete [select id from File];
0
votes
0answers
18 views

Is there a way to restrict file owner from deleting file out of the box. (In Professional Edition)

I have a requirement where , no one(not event owner of file) should be able to delete files attached to a object record out of the box. Cant write trigger as requirement is for professional addition....
0
votes
0answers
21 views

Sharing files externaly not working as expected

As severe topics advise, I am using contentdistribution to generate DistributionPublicUrl to share Files as images externaly. The problem is that the url generated have like a bar with the name of ...
0
votes
0answers
45 views

How to provide Guest Community User the access for a specific file in asset library?

I have created a page in community with 2 variations : public page and private page. I have stored 5 pdf's in a library folder and have given access to Community Public Group. In the private page I am ...
1
vote
1answer
86 views

How To Merge Concatenate Two PDF Files In Salesforce [closed]

I was wondering if there's a possibility to meet this requirement using any PDF tool (maybe Conga) in a Salesforce Org. I'm making a LWC that must merge or conc a group of PDF files related with a ...
1
vote
0answers
34 views

SFRestAPI.h in the Objective-C SDK appears to be missing methods

I'm building a Salesforce integration in an existing iOS app. As part of the integration workflow, I need to allow a user to upload a PDF to a specific opportunity. When the upload is complete, it ...
0
votes
2answers
60 views

How do I get the current APEX file name?

Is there something in APEX like __file__ (Python) or __FILE__ (PHP and C++)? Or even something like this in Java: String path = Test.class.getProtectionDomain().getCodeSource().getLocation().getPath()...
0
votes
0answers
12 views

Community User with Viewer on Library Can Upload and Delete Files

I have a bit of an issue with the permissions in a Library used in a Community. We have created a specific Library for exposing some files to one of our communities. Note we are on Spring '20 and ...
0
votes
0answers
73 views

want to query all ContentDocument without changing permission “Query All Files: Allows View All Data”

I want to run the following SOQL and want to get all the ContentDocument from all users. SELECT OwnerId, Title, FileType, LatestPublishedVersionId, ContentModifiedDate, CreatedDate FROM ...
0
votes
0answers
54 views

How to upload image to Salesforce from a native iOS app built using Salesforce Mobile SDK?

I want to upload an image to Salesforce database from my native iOS app built using Salesforce mobile sdk. I heard we should be making use of ContentDocument, ContentVersion & ContentDocumentLink ...
1
vote
0answers
43 views

External FTP File Transfer Activity Error in Automation Studio - Can't Change

I'm trying to gather the errored emails in a triggered send. My question is the same as this one: Triggered Send Errors - access subscribers for failed send? However, when I attempt pull the errors, ...
0
votes
0answers
18 views

Changed ContentDocument Owner via Dataloader, but is not being reflected in File List

I was asked to change the file's Owner, I did it via Dataloader app, the issue is that it still showing the old user as Owner. But the actual owner of the file is correct. I even deleted the sharing ...

1
2 3 4 5
7