Questions tagged [fileupload]

For questions related to the lightning:fileupload component

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 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 ...
user avatar
  • 1
0 votes
0 answers
27 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 ...
user avatar
0 votes
0 answers
19 views

Sending MMS via an file uploaded in an LWC using Twilio [closed]

First-time posting, and new to development so forgive the simplicity of my question. If I want to send an image file uploaded to an LWC as an MMS through Twilio do you always need to convert the ...
user avatar
0 votes
1 answer
21 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 ...
user avatar
  • 11
0 votes
0 answers
42 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 ...
user avatar
  • 1
0 votes
0 answers
31 views

Uploading an image via REST API [duplicate]

According to this blog, I'm trying to upload a file to salesforce, and link to the file from a case. This is part of ny code: const base64Content = fs.readFileSync('/home/***/Desktop/version.png', { ...
user avatar
0 votes
0 answers
26 views

It's possibile to personalize the "published url" in content builder for file?

It's possibile to personalize the "published url" in content builder for file? I tried to change the customer key, but the url is not changed. How I can personalize it?
user avatar
0 votes
0 answers
14 views

Test class for files upload method using contentDocumentlink for Guest user [duplicate]

I was trying to write a test which will take input as a file upload field and store file onto a dummy record then attaching it to the Lead record and removing those dummy record data after attaching, ...
user avatar
-1 votes
1 answer
23 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 ...
user avatar
0 votes
0 answers
29 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 ...
user avatar
  • 1
0 votes
0 answers
12 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 ...
user avatar
  • 97
0 votes
0 answers
81 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 ...
user avatar
0 votes
1 answer
321 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 ...
user avatar
  • 97
1 vote
1 answer
198 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 ...
user avatar
  • 361
0 votes
0 answers
166 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 ...
user avatar
-1 votes
1 answer
173 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?
user avatar
  • 1
0 votes
1 answer
154 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{ ...
user avatar
  • 59
0 votes
1 answer
267 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 ...
user avatar
0 votes
1 answer
78 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:...
user avatar
0 votes
1 answer
163 views

how to keep the file uploaded visible after refresh

When i refresh my code , the file uploaded is not saved , i can find it in my attachement , but me i need it to be visible in the place when i uploaded because i recupere the id with id : '/sfc/...
user avatar
0 votes
1 answer
395 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
-1 votes
1 answer
63 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 ...
user avatar
-1 votes
1 answer
158 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 "...
user avatar
  • 1
0 votes
0 answers
47 views

Aura:Carousel:- How to Upload file in Carousel from fileupload without Apex. i tried through Hard Coded value

Component :- <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction" access="...
user avatar
-1 votes
1 answer
507 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": [ {...
user avatar
  • 294
0 votes
1 answer
287 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 ...
user avatar
0 votes
0 answers
17 views

Privacy issue: Content Builder API creates a public URL containing the content that is not protected by login credentials

I need to load content to the Content Builder continuously but also need it in a secure way so no one can access my files. I came across this statement: Most content* uploaded to Content Builder is ...
user avatar
  • 1
0 votes
0 answers
29 views

Use URL to add files in Salesforce

Can I use a URL (use the URL inside a custom button) in order to create a file record within Salesforce? I tried to find the URL that is used didn't make it. I tried to use this URL but I get an error ...
user avatar
0 votes
0 answers
53 views

When using lightning file upload component, is there any way to detect that user clicks close "X" button or cancels?

Looks like LWC File Upload component has the single uploadfinished event which doesn't fire on cancel or when user clicks "x" button. We need to hide the file upload component if user doesn'...
user avatar
  • 13.4k
0 votes
1 answer
58 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 ...
user avatar
1 vote
1 answer
120 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 ...
user avatar
0 votes
0 answers
161 views

File Preview is not working

I have create a LWC where we can upload file and delete and download also preview, but when I try to preview file it's not happening. Its showing content document Id when I click on preview action. So ...
user avatar
0 votes
1 answer
957 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
user avatar
  • 630
2 votes
2 answers
1k 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 ...
user avatar
  • 13.4k
0 votes
0 answers
118 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 ...
user avatar
  • 131k
-3 votes
1 answer
37 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?
user avatar
0 votes
0 answers
178 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....
user avatar
3 votes
1 answer
492 views

lightning:uploadFile to create the record and relate the file in one transaction

We have a process where the user fills in a form and attach a file with that form. We are using the lightning:fileUpload component but we don't know the recordId yet until the form is submitted. At ...
user avatar
  • 392
0 votes
1 answer
428 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 &...
user avatar
  • 431
1 vote
2 answers
1k 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 ...
user avatar
  • 13
0 votes
1 answer
616 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 ...
user avatar
1 vote
1 answer
44 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 ...
user avatar
0 votes
1 answer
138 views

How to change FileName in Trigger | APEX [closed]

I have a custom object that gets created via a Flow, in that Custom Object I have a 'Type' and if Type is "A" then it allows users to UploadFiles, these files then end up in Related Files. I ...
user avatar
0 votes
1 answer
99 views

PageReference method not returning null

I have developed a Visualforce page that takes an input file from the user and does not let the user proceed to the next page only if they did not upload an attachment (attachment is null). However I ...
user avatar
1 vote
0 answers
60 views

Posting a Document as per ApiDoc always fails with error 400

I have taken the Api Documentation for uploading a document to SalesForce. After trying to get it to work in my usual programming language and failing I have decided to try it directly in the console, ...
user avatar
  • 111
0 votes
1 answer
407 views

I cannot see the files that I upload by lightning:fileUpload

I am creating a profile page for the user to upload their photos. To carry out the image upload, I use the component lightning:fileUpload, since when uploading a file it returns the id saved in files. ...
user avatar
0 votes
1 answer
72 views

Is there a way to send attachement image to Salesforces server with Web to leads forms or Web to case & with using AJAX?

So what I am looking for in an indication, because all articles I read about when it comes to sending attachment are dealing with web to lead or web to case forms with default submission! But what ...
user avatar
  • 156
0 votes
0 answers
337 views

Aura Upload file with inputfield/required field

I have an Aura component with the upload component, but now I want to add an inputfield which information should also stored in the file information. How can I add the information for the ...
user avatar
  • 431
0 votes
2 answers
267 views

Preview issue for non System Admin users

I am using Lighting:fileCard in the aura component and the System admin can see the preview of the file but not the other user with different Profile. <aura:component> <lightning:fileCard ...
user avatar