Skip to main content

Questions tagged [fileupload]

For questions related to the lightning:fileupload component

63 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
3k views

Scan uploaded files for viruses

I have a public Salesforce Community that I use like Web To Case - for clients to create new cases in my org. For implementing that, I have developed a lightning web component that creates a case. ...
Itai Shmida's user avatar
  • 5,065
4 votes
3 answers
5k views

How to show custom error message in lightning-file-upload in lightning web component

I need to show a custom error message in lightning-file-upload when we tried to upload the unacceptable format of the file. <lightning-file-upload label="Attach receipt" ...
sanket kumar's user avatar
  • 15.5k
2 votes
2 answers
3k 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 ...
Patlatus's user avatar
  • 17.5k
2 votes
1 answer
1k 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 ...
Pavlo Mykhailyshyn's user avatar
2 votes
2 answers
2k views

lightning:fileupload - Override default error message when unacceptable file format is uploaded

I am using lightning:fileupload in my lightning page. It works fine, but I am unable to override the default error message displayed (your company does not allow the file format...etc). Business wants ...
vardi's user avatar
  • 21
2 votes
1 answer
476 views

lightning:fileupload issue in salesforce1

I am trying to upload/attach files to a record using the lightning tag 'lightning:fileUpload'. I have used this tag inside a component and used the component inside an App It works fine when ...
amel janardan's user avatar
2 votes
1 answer
3k views

How to trigger the click event of <lightning:fileUpload>

I want to display the lightning:fileUpload differently After many tryouts with css hacks, I decided this is not good enough My current approach is to create a different button, and upon clicking on ...
Itai Shmida's user avatar
  • 5,065
1 vote
0 answers
675 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 vote
0 answers
1k 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
1 vote
0 answers
1k 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 vote
0 answers
109 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, ...
Halest's user avatar
  • 111
1 vote
0 answers
294 views

FSL - Select Files Button Not Working for Multiple Photo Upload on IOS device as a part of Screen File Upload compoent

I am using FSL Mobile Flow, to upload multiple files but in IOS Device I have facing an issue with the 'Select File' Button it's not taking photos from a file manager, the screen gets loading every ...
Sarvesh's user avatar
  • 998
1 vote
1 answer
2k views

What data type can be used to support file uploads in Salesforce?

I have a custom object and I want to add a new field to support file attachments. For example, while creating new record, I want the user/admin to have an option to attach files to that record during ...
Sameer Ali's user avatar
1 vote
0 answers
238 views

Can I upload a file to Salesforce CRM using AMPScript from a server side Cloud Page?

We want to make a form using Clod Page that will allow the users to upload an excel. Then we want to upload that excel to our Salesforce CRM. I found a few ways to send the file to MC server-side page ...
yoni349's user avatar
  • 163
1 vote
0 answers
539 views

Restrict certain extensions on lightning component file upload

I have a lightning component for uploading files on salesforce. On the code, I have listed all the acceptable file extensions allowed like this <aura:attribute name="accept" type="...
Charlie's user avatar
  • 77
1 vote
1 answer
658 views

Upload ContentVersion to SF via JS

I am developing a visualforce page. I'm trying to upload pdf-file from remote server in contentversion , here is part of my code: let response = await fetch('http://www.africau.edu/images/default/...
Vladimir K.'s user avatar
1 vote
1 answer
571 views

Upload file into S3 bucket with correct format

I had uploaded a .txt file to AWS S3 bucket. on opening file, it showed data like aHR0cHM6Ly90ZXN0LnNhbGVzZm9yY2UuY29tLw== If we pass this string data ...
Sunrise487's user avatar
1 vote
0 answers
267 views

Not able to upload more than 5 mb file in Sharepoint from Apex Salesforce

I am using Sharepoint to upload file from Salesforce, I have integrated both system via Rest API. Below 5 mb files it's working fine, but for file larger than this I am not able to upload it. I know ...
Ravi Kant's user avatar
1 vote
0 answers
116 views

File Upload not working, when Flow is called via URL in Salesforce1 App

We have created a flow screen to upload a file. As per our requirement, Flow will be called via URL from a Lightning component. It works fine for Desktop. But, the file upload is not working in the ...
Subathira Nagaraj's user avatar
1 vote
0 answers
192 views

Image getting rotated while inserting in rich textarea field using attachament

Facing this problem while uploading image using iPhone salesforce one app. In the attachment the image is showing right, but when the same image from attachament is inserted into rich textarea it is ...
optimistic_cloud's user avatar
1 vote
2 answers
1k views

Drag and Drop - multi file upload in Custom Lightning Component

I want to create a drag and drop multi-file upload in a lightning component form. The form is displayed in a community. I have used <lightning:fileUpload label="Attach receipt" ...
Madhurima's user avatar
  • 1,435
0 votes
0 answers
36 views

Deleting uploaded files using a custom delete button

I have a custom lwc component to upload files to a record. I used Lightning file upload for this. And after files are uploaded I show them in the form of a datatable with a download button for every ...
Vijay Babu's user avatar
0 votes
1 answer
30 views

Only Trigger Apex when File is not uploaded via chatter feed on Case

I have an apex trigger that creates a Chatter post on a case when a file is uploaded to that case. The code is working perfectly fine, the issue is I want to be able to restrict this code to only run ...
greglorious_85's user avatar
0 votes
1 answer
170 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
193 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
0 votes
0 answers
30 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
121 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
95 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
47 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
71 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
61 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
419 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
0 answers
109 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
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
0 answers
530 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
0 votes
0 answers
218 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
0 votes
1 answer
172 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
0 votes
0 answers
388 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 ...
Keith C's user avatar
  • 137k
0 votes
0 answers
533 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....
Pedro Caetano's user avatar
0 votes
0 answers
1k 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 ...
peXeq's user avatar
  • 471
0 votes
0 answers
178 views

uploading files into object related list

I have a requirement where i need to upload files into an object related list(notes & attachments section),i just written a code in component and controller, but it does'nt seems to be worked,...
akhil's user avatar
  • 1
0 votes
0 answers
73 views

Is it Possible to save particular files anywhere in salesforce?

<template> <lightning-card title="LWC File Upload Example" icon-name="custom:custom19"> <lightning-file-upload label="Attach CSV file" ...
Frank's user avatar
  • 423
0 votes
0 answers
291 views

Flow upload file component

I create a flow which allows the user to upload a file, for this case I use the lightning component "file upload". I also create two required custom fields and I add the fields also to the ...
peXeq's user avatar
  • 471
0 votes
1 answer
1k views

How to reset uploading file in lwc

When I click on new button then I uploaded the file using lightning file upload now if i'm clicking on cancel button, then I'm again click on new button then the previous uploaded file is there. How ...
user90782's user avatar
0 votes
1 answer
783 views

Add required field to file upload

I created two custom fields at the files object which are required. How can I add this fields to a flow with the file upload component? I know how can I add fields to the Screen Flow, but the Upload ...
user avatar
0 votes
2 answers
993 views

Unable to restrict Multiple File Uploads using Lightning:FileUpoad

Am using LightningFileUpload component with Multiple set to false.But i still get the option to upload multiple files, upload button is not disabled after single file upload. Will this false attribute ...
Raji Mohan's user avatar
0 votes
0 answers
157 views

How can I add attachment to related list of object when the user is not logged in?

I have a Visualforce page with lwc components in Site, which does not require user to log in. Here the requirement is to upload a file as attachment to a Custom object. In other places we had login ...
AdityaHM's user avatar
  • 133
0 votes
0 answers
85 views

Marketing Cloud Automations Failing - Transfer Activity - Eye Symbol

We started experiencing a group of automations failing. Automations that hadn't failed in the past but for some reason began to fail upon the file transfer activity. When I look at the file transfer ...
chorlesbarkley7's user avatar
0 votes
1 answer
36 views

aura:component fileUpload

create a lightning component to upload images (fileUpload). that component goes to the registration page of a custom object, but when entering the salesforce1 application I cannot see the component. ...
CarlosMato's user avatar
0 votes
0 answers
447 views

Multiple File upload on public visualforce feedback form

I'd like to provide a multiple file upload module on a public visualforce page and I'm struggling with the upload process. As the upload process requires to have a record ID, how can I save the ...
poypoy's user avatar
  • 41