Questions tagged [fileupload]
For questions related to the lightning:fileupload component
153
questions
-1
votes
1
answer
44
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 ...
0
votes
0
answers
64
views
Please Review : Input tag File Loading Using LWC and XMLHttpRequest (Able to upload more than 36 MB - Tested till 36 mb till now )
A day before yesterday, I posted a question How to reduce the heap Size while File Upload Aura (Do read this before reading further to understand my problem statememt). I have Aura (Parent) and Lwc ...
0
votes
1
answer
42
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 ...
0
votes
1
answer
784
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 ...
0
votes
0
answers
34
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 ...
1
vote
1
answer
113
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 ...
0
votes
1
answer
101
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 ...
0
votes
0
answers
122
views
Get content body of upload file in Flow
Hello guys I have a button in an the objet SObjectOne that calls a Flow that get the recordId of this current record and also uses the UploadFile component. After this I call an Apex class. So in this ...
0
votes
1
answer
51
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 ...
0
votes
1
answer
82
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 ...
0
votes
0
answers
172
views
Increase File Upload Limit LWC
I have been struggling with this for too long. I have a business requirement to upload files in a community for guest users and I would say it needs to be around 30MB.
This is what I'm using for my ...
0
votes
1
answer
954
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 ...
0
votes
0
answers
22
views
Attach multiple files in Push Notification
Hello I and using a lightning-input file that allows the users upload multiple files. In the apex controller I want to send a push notification to clients with a message and the attached files the ...
1
vote
0
answers
358
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 ...
-1
votes
1
answer
126
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 ...
0
votes
0
answers
59
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 ...
1
vote
1
answer
760
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.
3
votes
1
answer
378
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 ...
0
votes
1
answer
285
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 ...
0
votes
0
answers
1k
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 ...
0
votes
1
answer
476
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 ...
0
votes
0
answers
435
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 ...
-1
votes
1
answer
92
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 ...
0
votes
0
answers
144
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 ...
1
vote
0
answers
729
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 ...
0
votes
1
answer
571
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 ...
0
votes
1
answer
1k
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 ...
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 ...
1
vote
0
answers
814
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 ...
-1
votes
1
answer
631
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?
0
votes
1
answer
2k
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{
...
3
votes
1
answer
1k
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 ...
0
votes
1
answer
318
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:...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
4k
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 ...
-1
votes
1
answer
377
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 ...
-1
votes
1
answer
554
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
"...
-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": [ {...
1
vote
1
answer
2k
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 ...
0
votes
1
answer
140
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 ...
1
vote
1
answer
471
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 ...
0
votes
1
answer
3k
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
2
votes
2
answers
2k
views
LWC File Upload component ignores accept setting for drag-and-drop
There is a strange behaviour in LWC File Upload component.
There are two ways how files can be uploaded through this component.
The user can:
Select a file on your system by clicking the button to ...
0
votes
0
answers
312
views
Anyone using sfdx force:data:bulk:upsert to update Files (ContentDocument/ContentVersion)?
I have some small place-keeper files (ContentDocument/ContentVersion) loaded by some existing code but want to replace the content with the actual PDF/Video data. This is to pre-load scratch orgs with ...
-3
votes
1
answer
47
views
Integration of salesforce for file uploads and insert [closed]
Is there any way to upload, insert files from any excel sheets(google sheets, MS,...) into salesforce records?
0
votes
0
answers
396
views
Aura component: Mutiple $A.enqueueAction takes long time
I'm testing a component where I upload a file, convert to base64 and split into several CHUNK Parts send each one to an apex method.
This component seems quite common online. Like:
https://sfdcmonkey....
0
votes
1
answer
925
views
Validation rule for deletion of files or check via flow
We have files with special categories, if a new file is uploaded the category is mandatory for each file.
Category A - can deleted
Category B - cant deleted
I though I can make a validation rule like &...
1
vote
3
answers
3k
views
Hot to change the button label for lightning-file-upload?
I created file upload function using lightning-file-upload. Its buttons are showed "uplopadFiles" and "ordrop files". I would like to change those to proper Japanese. Could you ...
0
votes
1
answer
1k
views
LWC Upload File/Files to Multiple Contacts
I have a data table of Contacts on an Account Record Page and I am trying to use the modal component as a file uploader. Basically, you would select a contact or contacts, click the modal button, and ...
1
vote
1
answer
149
views
when running test class, encountering runAs() issues with user having insufficient access to upload resume
I am encountering an issue with running my test class as a made-up user. It seems like I have insufficient access to uploading files onto the org, anyone would be able to point me in the right ...