Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [fileupload]

For questions related to the lightning:fileupload component

Filter by
Sorted by
Tagged with
0 votes
1 answer
49 views

How to let external users upload files when compiling a form

we need to know if is it possible with Salesforce (we have an Enterprise Edition) to create a Form, accessible to not logged users, where we will ask some infos, and, through this form, let those ...
Alex I's user avatar
  • 1
0 votes
1 answer
65 views

InvalidNumber File Import Errors when using "number" field type

I set up a daily automation to pull in a file import from an SFTP folder. For some reason, Marketing Cloud will not accept the columns as a "number" data type. We rounded the numbers to ...
Elise's user avatar
  • 11
0 votes
1 answer
197 views

How to display a list of attachments that are related with a record?

I am looking for a solution to display a list of attachments that are related with a record without allowing the user to delete the existing files and preventing him from uploading files in this ...
Lut's user avatar
  • 287
0 votes
1 answer
73 views

Upload Images to Mkt Cloud Content Builder using a form in a Landing page

I'm using a form on a Mkt Cloud landing page that uploads images to the content builder. To give you context, when the client uploads an image, we are storing other variables that are input in the ...
Hugo Martins's user avatar
1 vote
1 answer
307 views

Uploading Content as a new version via LWC File Upload

I am trying to provide a custom interface for uploading a new version of a file in Experience Cloud. I know folks have asked this before, but with the ability to add a custom field to file upload, I ...
BritishBoyinDC's user avatar
0 votes
0 answers
22 views

File Privacy on Records field is not visible in Edit File details opened from row actions in Related Files

I've included File Privacy on Records field to ContentVersion object layout and it is shown everywhere except when I click "View All" on Files related list on record page and then "Edit ...
dobra_wodka's user avatar
0 votes
0 answers
82 views

Screen Flow: File Upload Component: Salesforce Mobile

I have a screen flow that is using a file upload component, that is working from the browser. When I try to test through the standard mobile app, I am not able to upload files to a related object. I'...
Moe's user avatar
  • 11
0 votes
0 answers
53 views

Unable to upload file in chat using API and postman

My goal is to upload the file from my custom widget, whenever agent request for fill upload. When agent request file upload from salesforce chat, I am trying to upload file from postman by hitting ...
Rahul Kesharwani's user avatar
0 votes
1 answer
28 views

Which SLDS CSS code is used to hide error text on file upload pop up?

Our client's Experience Cloud site has some CSS code that another consultant implemented, but since I cannot get in touch with them, I hope any of you can help me out. I am trying to figure out how to ...
Mille_B's user avatar
0 votes
0 answers
41 views

User assigned with Read-only permission set group can upload files

In my org there is a permission set group called ReadOnlyFundingOpportunity with the following permission sets: ReadOnlyFundingOpp on the FundingOpportunity object. I assumed a user assigned with ...
ash's user avatar
  • 1
0 votes
1 answer
56 views

ContentDocumentLink Trigger successfully blocks file upload on Org but fails in Dev Console

I want to block file uploads (ContentDocumentLink) on a FundingOpportunity object when status is Canceled or Closed. It works fine in the org, but it fails when I tried it on Dev console. A File is ...
ash's user avatar
  • 1
0 votes
1 answer
108 views

Concern with "modify all data" permission to upload a new version of a file

As per the documentation regarding Upload a New Version of a File, the note section says that Only file owners, collaborators, and users with the Modify All Data permission can upload new versions of ...
Arpan Sharma's user avatar
-1 votes
1 answer
138 views

Attach file stored in ContentVersion object to ServiceNow Incident

I'm writing an integration in Salesforce where users can create an Incident in ServiceNow from within Salesforce. I'm able to create the Incident fine from Salesforce. I need to be able to attach a ...
AUEagle2005's user avatar
0 votes
1 answer
133 views

Unable to Upload Files of Lightning Flow launched by Visualforce

We are using Visualforce override page for New Case Action that is triggering Lightning Screen Flow via Lightning Out. The Lightning Runtime in Visualforce Page was Rendered according to Salesforce ...
Vasyl Poidynets's user avatar
1 vote
1 answer
5k views

Upload File Content via LWC to Apex

I am trying to build a Custom JSON to Records Import from a Record List view page. On the Click of a Button or Action Link, a File Upload should be displayed in a modal Lightning modal and the Blob ...
Robert Sösemann's user avatar
0 votes
0 answers
170 views

i am trying to upload and store files in multiple collections in Screen Flow but its not assigning ContentdocumentLink in Assignment

I am working on Screen Flow. and i want to upload multiple files and also to store multiple file in related Record Id. as i am doing with content document link i need to assign and add single content ...
Tushar Kumar's user avatar
1 vote
1 answer
300 views

Image limits in Content builder

I found that there is a limit on the size of the image (5 MB) in Content builder https://help.salesforce.com/s/articleView?id=sf.mc_ceb_supported_file_types.htm&type=5 But is there any limit on ...
Tom's user avatar
  • 9
0 votes
1 answer
302 views

File size limits in Content builder

To Content Builder, I can upload video file up to 5 MB per file: https://help.salesforce.com/s/articleView?id=sf.mc_ceb_supported_file_types.htm&type=5 But how do you increase this limit? For ...
Tom's user avatar
  • 9
0 votes
1 answer
95 views

How do I increase the max size of files that can be uploaded with AuraClient?

We are trying to upload files with the AuraClient. Getting error: auraclientinputexception max message parameter length. The limit is even smaller in our sandbox server (3MB or so) Is there a way ...
Clay Nichols's user avatar
0 votes
1 answer
122 views

div onclick get id returning random numbers

Context: I have a dynamic number of lightning field upload and i'd like to know from which i'm uploading so i can tag the files to a certain file upload. and there can be a lot more. For each file ...
Julien Souchi's user avatar
0 votes
1 answer
2k views

Filereader.readasDataUrl is not throwing error when file is uploaded through lightning-file-upload

I have an LWC component which takes xlsx/xlsm file as input and sends the file data to an API as input. Initially, I used lightning-input with type=file which is working as expected for files <3MB ...
Chinni Vishnu Kalyan's user avatar
1 vote
0 answers
523 views

File Content is missing while uploading as multipart/form-data using FETCH API

I am trying to upload file to contentversion object using javascript with the help of FETCH API. I'm able to upload the file successfully but the content is not displaying. Please find the form ...
Raja Sabarish's user avatar
-1 votes
1 answer
251 views

How can I create custom addError message in ContentVersion trigger?

I have a trigger that will prevent the user to upload file but the error message in ContentVersion is being overridden by Lightning. How can I create a custom error message? trigger CDTrigger on ...
ratRiot01's user avatar
0 votes
0 answers
86 views

How does After Trigger works when using addError in ContentVersion object? Is the file successfully uploaded or not?

I have a custom object with related files in a page layout. Now if user click the 'Upload files', I want to prevent user to upload a file. Seems like I cannot use 'before trigger' because I cannot ...
ratRiot01's user avatar
1 vote
1 answer
1k views

'Upload files or drop files' to 'Upload file or drop file'

How can I change the 'Upload files or drop files' text to 'Upload file or drop file'. When I am allowing single file upload in lightning-input component.
Akshita Gupta's user avatar
3 votes
1 answer
449 views

Unable to upload a file in login flow

Is there a known issue with file upload in flow login? Because, I don't have problems in upload a file with the same flow attached to a record page, but when is inside a login flow the same flow is ...
Wiidialga18's user avatar
0 votes
1 answer
366 views

Salesforce: Read email attachments on file upload LWC

I used lightning-file-upload to allow Users to upload files. Now, one of the use cases is, if the file is an email (.msg file type), we need to split the attachments and upload them as individual ...
SFDev's user avatar
  • 1
0 votes
0 answers
2k views

How to Jest file upload

I am stuck with Jest testing of file resize/upload logic. This is a simple job to resize uploaded image and add it to the Notes & Attachments based on recordId. It is not a production code - it ...
Alex__c's user avatar
0 votes
1 answer
648 views

Upload file in child and submit in Parent

I have lightning-input tag with type as file in Child component, and I am making use of this child component in Parent component which contains Submit button. So when the user clicks on submit , file ...
Venkat's user avatar
  • 11
0 votes
0 answers
494 views

System.DmlException: Insert failed. First exception first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Linked Entity]: [Linked Entity]

Updated the code here. I am trying to override the standard file upload button functionality. I have created a lwc on a VF page and overrode the 'Upload files' button in FILEs object. As soon as we ...
Dusk123's user avatar
-1 votes
1 answer
199 views

How Salesforce manage attachment while sending an email from record detail page under activity? [closed]

I am curious to know, how Salesforce manage attachments which we add while sending an email from activity. Does Salesforce stores those files somewhere in hidden objects and use them once we click on ...
Rajneesh R's user avatar
0 votes
0 answers
196 views

How can I map the Upload / attachment to a custom field of a custom object in surveys?

I have below requirement. We are not getting upload/Attachment related questions while mirroring the questions to custom object fields. I am creating a survey. I have a survey questions which contains ...
vamsi's user avatar
  • 1
1 vote
0 answers
970 views

LWC - Upload canvas image(.jpg, .png) file to the server(person account)

I'm trying to make a functionality where I would like to allow users to save the captured images to the server. The general idea is: Capture/Create an image on an HTML5 canvas using a button and When ...
Ian Lee's user avatar
  • 137
0 votes
1 answer
1k views

Is it possible to have folders under the Opportunity / Notes & Files tab?

I tried to find out if it's possible to create folders where files can be stored, but all I can find is having the "File" tab separate and accessing the folders there through Libraries. Once ...
Anna Spasova's user avatar
0 votes
1 answer
2k views

LWC - Rename file before upload JS to Apex

I want to automatically change/update the name of a file as it's uploaded. I'm accepting files as these formats only get acceptedFormats() { return ['.pdf', '.png','.jpg','.jpeg']; } So for ...
Ian Lee's user avatar
  • 137
1 vote
1 answer
1k views

Max file size to upload to database when using input type file is not 4.5 MB

Max file size in 4500000 bytes which is almost equal to 4.3Mb not 4.5 Mb I see many blog wrote as 4.5 Mb Using input type file is not allowing to save 4.5 MB but it is allowing upto 4.3 MB Is my ...
RaJu's user avatar
  • 361
1 vote
0 answers
981 views

Salesforce Flow File Upload component get outputs before Next button

I have a flow on a community site (guest user context) using the standard file upload component to allow users to submit files. Since guest users can't access Opportunities and I need to link these ...
PatMcClellan__c's user avatar
-1 votes
1 answer
778 views

Is Heroku Ephemeral File System where I can write to $HOME and /tmp?

For Heroku Ephemeral File System, I read in other posts that the location where I can write to are $HOME and /tmp? Also, does anyone know how I can view files saved in Heroku Ephemeral File System?
123456's user avatar
  • 101
0 votes
1 answer
3k views

Test class for an Apex class with ContentDocumentLink [duplicate]

I have written a LWC component for file upload using ContentDocumentLink and it is completed. Right now I am writing a test class for the Apex class. Apex class: public with sharing class Sitevisit{ ...
JK123's user avatar
  • 69
3 votes
1 answer
2k views

Experience Site: Lightning-file-upload Issue

I have created an unauthenticated LWR experience site and added a simple LWC component. The component contains a lightning-file-upload component. If I upload a file using it, the component disappears ...
SFDC_BigDog's user avatar
0 votes
1 answer
393 views

Upload file : File Selector style

Is there a method to delete the Or drop Files and change the Upload Files with Upload Picture ? <lightning-layout-item style="width:35%"> <lightning-spinner if:...
mary snh's user avatar
0 votes
1 answer
2k views

how to disable Lightning button after file upload in LWC

I have a lwc page where users can upload files in an object. I have a requirement the import button need to be enabled only if the file is not uploaded yet , but if it is uploaded succesfully i should ...
mary snh's user avatar
0 votes
1 answer
6k views

Upload picture using LWC (Lightning Web Components) : problem to get Result

I have created an LWC for a file uploader to upload pictures to a custom header . What I want to do next is display the picture that was just uploaded and make it visible in my header . Does anyone ...
mary snh's user avatar
-1 votes
1 answer
516 views

How to upload salesforce file coming in application/octetstream format from another salesforce record

I am trying to fetch Salesforce attachment body using standard REST API /services/data/v50.0/sobjects/Attachment/<record-id>/body from an external tool. This API call returns me the data in ...
Saurabh Kulkarni's user avatar
-1 votes
1 answer
680 views

File Drop Automation can't work

I have an automation triggered by File Drop. when the file is dropped , it will be imported to a staging data extention(overwrite). now here is an odd thing: when I upload a file name as "...
Rikki's user avatar
  • 1
-1 votes
1 answer
1k views

Move files from one folder to another using Google Drive API and Apex [closed]

I’m making a callout using named credentials and trying to update the parent Id of the G-Drive file. While doing the callout, getting the below error. "error": { "errors": [ {...
am_Aravi's user avatar
  • 392
1 vote
1 answer
3k views

How to change default file upload size limit in salesforce?

In the documentation of lightning-file-upload it is stated that 'By default, you can upload up to 10 files simultaneously unless your Salesforce admin has changed that limit. The org limit for the ...
adnan_aust's user avatar
0 votes
1 answer
170 views

How to populate a Picklist field and also save uploaded files using Lightning Components

I'm trying to create a lightning component for KYC Verification. And for that, we are trying to access a picklist field- 'Verification Id'. The data is not getting saved. Also, the files are not ...
sfdxnewbie's user avatar
1 vote
1 answer
607 views

Is there a way to upload/insert a particular custom object record and its related file document from one single csv file using data loader?

Hi it would be great if anyone could help me out with this. I have encountered a requirement in salesforce where I have to upload/insert a custom object record and its related file attachment into ...
Muhammed Rishdhi's user avatar
0 votes
1 answer
5k views

How to get the uploaded file's size when using lightning-file-upload?

I've tried the following but it returns 'undefined. event.detail.files[0].size
Bahman.A's user avatar
  • 858