Questions tagged [fileupload]

For questions related to the lightning:fileupload component

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

Invalid Field Count when uploading .csv file to a data extension [duplicate]

ValidationErrors: CaseSensitiveSalesforceID: 99 Required Field: 7 Invalid Field Count: 1 I'm trying to data load a .csv files, everything matches accordingly, trying to troubleshoot what this error ...
0
votes
0answers
22 views

File Upload Making as Public - Image is not Showing in HTML img tag

I am Uploading the Image from LWC page by using lightning-file-upload and Making the Image as Public accessible as Below ContentVersion cv = [select id from contentversion where contentdocumentid =:...
1
vote
1answer
27 views

Image Upload in LWC - Public Link

Trying to Upload image file in LWC by using lightning-file-upload Below is My Code. Is there any Way i can get the Public Link once upload got Successfully in LWC? HTML <lightning-file-upload ...
1
vote
0answers
26 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 ...
0
votes
0answers
17 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="...
0
votes
1answer
19 views

Override the lightning-file-upload error message with addError message in LWC

I have a Trigger written on ContentDocumentLink, which validates file attached on Opportunity. If there are any errors then we are using addError() in the Trigger to display those errors. On UI it is ...
1
vote
2answers
37 views

Can you use lightning-file-upload without saving?

In LWC, is it possible to use the lightning-file-upload component without saving the file to a ContentDocument? I am going to be uploading it to another server via an API and don't need/want it saved ...
1
vote
1answer
54 views

Community - Flow - Upload File to custom object fails with error 'Can't upload …'

This error shows up while trying to upload a file from within a community flow as a registered user and to a custom object created by the registered user himself: I'm using the standard lightning ...
0
votes
1answer
17 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?
0
votes
1answer
22 views

optional file upload in <lightning:input …> [closed]

I'm using <lightning:input ... type="file"> to allow file upload on the UI. Is there any way I could make it optional in the component itself? instead of taking care of the check ...
0
votes
1answer
18 views

What events we can use other than uploadfinished for lightning-file-upload?

I need to have a way to display wait indicator/spinner when user has selected a file and till the time below pop comes? When selecting large size files it is taking time and seems confusing to end ...
0
votes
0answers
31 views

File Upload LWC along with record type id

The reason I try to develop File Upload component is to get over the Record Type Issue here . I follow the documentation and try to get it upload by defining record type id mentioned in documentation ...
0
votes
2answers
23 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 ...
0
votes
0answers
28 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 ...
0
votes
0answers
16 views

upload file in lightning component, have it appear on files related list on the object?

i'm working on a custom lightning component, and i want the user to be able to attach a document (multiples allowed) and have it attach to the files related list, file format should be pdf. i also ...
1
vote
1answer
27 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/...
0
votes
0answers
15 views

Upload files via lightning:fileUpload

I am developing a visualforce page. I need to download several pdf files from remote server to ContentVersion. I was surprised that I can't directly upload fetched file's blobs to the lightning:...
0
votes
0answers
76 views

LWC: Standard file upload does not update field in file-field-name attribute

I'm using my LWC to upload photos as Files for a specific Custom Object within a community. <lightning-file-upload label="Upload your photo" record-id={obj.Id} onuploadfinished={...
0
votes
0answers
14 views

Lightning input File upload

Can anyone suggest me what is the limit of file upload using lightning input. I am uploading file content chunk by chunk.. Some help articles suggest of 4.5 MB being the limit but i get size error on ...
0
votes
0answers
8 views

'Add Files' button not showing in Files Related List in Case object

'Add Files' button not showing in Files Related List in Case object. This is happening for a single odd users. other users having same profile is having that button. What can be the issue?
0
votes
1answer
80 views

Drag Drop from Popup not working on Mozilla Firefox and Internet Explorer for lightning-input type=“file” in LWC

I have the following code for File input in LWC. The drag-drop works fine for chrome, edge browser. But for Mozilla Firefox browser and Internet Explorer, If we select the button and open the popup ...
0
votes
0answers
26 views

How to create a public Url for an attachment? [duplicate]

I used a lightning:fileUpload to insert a file into the Attachment object: <lightning:fileUpload recordId="{!v.patientId}" aura:id="fuploader" name="files&...
0
votes
0answers
200 views

Guest users are unable to upload a file in a community

We have a community which has a lightning:fileUpload component for guests to upload anonymous file attachments. At the point of creation the attachments have no parent and are assigned to the default ...
0
votes
0answers
38 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 ...
0
votes
1answer
94 views

Unable to upload large files (not above 4MB) as attachment with apex class method from LWC. How to overcome this issue?

LWC method to convert selected file content to base64 String and call the apex method for uploading as related Notes and Attachment on a particular record myComponent.js const toBase64 = file => ...
0
votes
1answer
57 views

Restrict file size Lightning file upload?

I have a Lightning file Upload component I am using Lightning:fileupload . so user tries to upload more than 100MB. I want to show an error message, it is possible?
0
votes
0answers
61 views

upload live camera capture photos only using lightning-file-upload

I have a requirement to upload documents from camera only and not from phone's gallery/album or something like i can check the created/lastmodified date of the file to check if it is captured at that ...
0
votes
0answers
42 views

I am using LWC component as the UI and get few input parameters and file upload. I want the file and the metatags to be saved in postgreSQL

The LWC component gets the few parameters as input in UI and a upload file functionality is also there. If I upload the file, the file and the above given metatags should also be sent via the POST ...
0
votes
1answer
79 views

How to align two lightning components side by side?

I have a fileUpload in my aura:component, and I want to diplay a formattedUrl next to it on the same line. This is the code I have used: <div> <span><lightning:input aura:id="...
2
votes
1answer
306 views

LWC: Maximum Blob Size From JS To APEX

I want to make a "custom file upload" LWC component as I am in need to build a specific design for an upload process. There are a few things I am not sure about. What would be the maximum size of a ...
0
votes
0answers
29 views

How can I upload a file in a specific library with rest api?

I'm trying to upload a file in Salesforce with postman at this url: /services/data/v48.0/sobjects/ContentVersion I need to be in a specific library so i'm using FirstPublishLocationId field. this ...
0
votes
0answers
18 views

Document upload filename showing error

I'm getting this error after uploading the document: This page has an error. You might just need to refresh it. First, would you give us some details? (We're reporting this as error ID: -...
1
vote
0answers
104 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 ...
0
votes
1answer
110 views

How to attach contentversion to record in Javascript

I am working on a solution to avoid to surpass the viewstate limit when uploading a file. Currently with javascript I create a record and create a contentversion but the contentversion is not attached ...
0
votes
1answer
10 views

Can we add the same file to two different records at the same time

I'm using lightning:fileUpload in my lightning component to upload files. Now I need to upload the same file to both parent and child case at the same time. Is there any possibility to do that? <...
1
vote
0answers
59 views

Customize the Size of Lightning-File-Upload

I would like to customize the size of the lightning-file-upload so that the 'dotted'/drag-n-drop area is larger. I don't see any documentation on changing that. Here is an example of what I am ...
1
vote
1answer
177 views

File Upload Screen flow component is disabled on lightning page AKA - recordId is not passing to Screenflow

I build a screen flow to upload a file to an oppty, using the fileUpload component It works great when testing the flow itself, but when adding to a lighting page, the Upload file button is disabled ...
0
votes
1answer
323 views

How to fire a process builder after a document is added to an oppty/object

I have a case, where upon adding a file/attachment to an opportunity, I need to send that attachment, as an email. I don't want to use the trigger: trigger trialFileUpload on ContentDocument (after ...
0
votes
1answer
265 views

File upload component in flow doesn't work when launched in VisualForce

I've created a Flow with a File Upload Component which works perfectly when ran as Flow. However, when I'm running the flow, via a visualforce page, the file upload component doesn't work as expected. ...
1
vote
1answer
48 views

Data Extension CSV upload - breakdown of which records were added, skipped & updated

I've added data to a Data Extension via CSV upload. I've had the confirmation email saying: "X have been inserted, X have been updated" Is there anywhere that I can see which records were inserted ...
0
votes
1answer
20 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. ...
0
votes
0answers
81 views

How to upload image to Salesforce from a native iOS app built using Salesforce Mobile SDK?

I want to upload an image to Salesforce database from my native iOS app built using Salesforce mobile sdk. I heard we should be making use of ContentDocument, ContentVersion & ContentDocumentLink ...
0
votes
1answer
63 views

Prevent 10MB files from attempting to upload to Salesforce

I want to utilise 10MB file limit (happy to prevent 10MB files), and the standard apex:inputFile notation. Do not want to use JS API When I use the below Apex/VF/JS I am allowed to browse and select ...
8
votes
1answer
71 views

Is there any difference between the heap consumption in sandbox and production orgs?

After creating a custom file-uploader lightning component we had the following problem : The amount of data to be passed from lightning controller to server-side controller (apex) was limited (...
2
votes
1answer
221 views

Where is a File's “Customer Access” status located?

Background (This question is a more specified version of ytiq's question File "Customer Access" Permissions) Salesforce Lightning now requires that a file have the "Customer Access" toggle set to "...
0
votes
0answers
108 views

lightning:fileupload not working in flow in Salesforce Mobile

I've built a flow that needs to allow my client to upload files on a couple of the screens. The flow needs to run inside the Salesforce mobile app on Android. I've tried both the standard flow "file ...
1
vote
2answers
295 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 ...
0
votes
1answer
490 views

LWC Custom file-upload without file size limit 4Mb

Does anyone know the way to write custom file-upload on lwc based on html input and file size limit at least 20Mb?
0
votes
0answers
38 views

Error in moving audio content to azure retrieving with apex callout

I am making a callout to a 3rd party to retrieve an mp3 file The endpoint is a HTTP GET (https://media.ringcentral.com/restapi/v1.0/account/~/recording/RECORDINGID/content) The response is the actual ...
1
vote
0answers
463 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. ...