Questions tagged [fileupload]

For questions related to the lightning:fileupload component

58 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
2k 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
  • 4,995
4 votes
3 answers
4k 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
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 ...
Patlatus's user avatar
  • 16k
2 votes
1 answer
1k views

Rich Text pictures - how to find and manage them

is there a way to find and address picture uploaded via Rich text editor? How they are stored in system? Can reuse uploaded files somehow in different rich text field?
Artur Kępczyński'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
464 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
  • 4,995
1 vote
0 answers
398 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
802 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
  • 117
1 vote
0 answers
882 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
101 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
233 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
196 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
  • 81
1 vote
0 answers
501 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
  • 47
1 vote
1 answer
591 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
0 answers
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
1 vote
1 answer
497 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
246 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
106 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
159 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,265
0 votes
1 answer
22 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
0 votes
0 answers
68 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
0 votes
1 answer
136 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
147 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 ...
sinpasharmi's user avatar
0 votes
0 answers
185 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 ...
mrgagne's user avatar
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 ...
TechGuy's user avatar
  • 97
0 votes
0 answers
67 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
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 ...
Alex__c's user avatar
0 votes
0 answers
460 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
159 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
151 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
333 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
  • 135k
0 votes
0 answers
415 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
797 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
  • 451
0 votes
0 answers
130 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
68 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
  • 403
0 votes
0 answers
264 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
  • 451
0 votes
1 answer
882 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
642 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
0 answers
2k views

Multiple File Uploading using lightning input tag with type="file"

I have found this code on internet and change it as per my need, but this code is not working if i increases the MAX_FILE_SIZE in helper component: <aura:component implements="forceCommunity:...
Anna's user avatar
  • 3
0 votes
2 answers
740 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
152 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
81 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
398 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
0 votes
1 answer
199 views

Upload sign not showing in visualforce page

I am trying to use lightning file upload icon in visualforce page using slds.The problem is button is displaying but the upload icon is not displaying in the button it is coming blank <apex:page ...
Salman Khan's user avatar
0 votes
0 answers
42 views

Is it Possible to insert Files from VF Page using Connect APIs?

I know attachments can insert through connect API. What about Files ? I have heapsize issues while insert an document with size of 5 mb Here is My Controller to Insert a file @AuraEnabled public ...
Gowtham sakthi's user avatar
0 votes
1 answer
464 views

How to make files Archived using apex ? (isArchived = true)

I am in one of the requirements where I need to set IsArchived = true when user uploading any files using Upload files option. I thought apex trigger will work here but it doesn't trigger ...
Nail David's user avatar