Questions tagged [fileupload]
For questions related to the lightning:fileupload component
153
questions
0
votes
1
answer
479
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 ...
0
votes
1
answer
198
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 ...
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, ...
0
votes
1
answer
1k
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. ...
0
votes
1
answer
221
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 ...
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 ...
0
votes
2
answers
553
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 ...
4
votes
1
answer
4k
views
Uploading Multiple file using fileReader in lwc
I am trying to upload multiple files using lightning-input type="file" below is the code.
HTML
<lightning-input type="file" onchange={handleOnFileUpload} name="uploadFile&...
0
votes
0
answers
489
views
Upload csv files from ftp into SF via Apex (without insertFile Tag) [duplicate]
I want to automatically upload csv files into Salesforce on a regular basis, doing a scheduled job. I want to have this job centralized so that everybody has access to the code and the process. I want ...
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 ...
0
votes
1
answer
2k
views
(LWC) Your company doesn't support the following file types: .csv
This is in a Full Sandbox.
Been using an LWC which I created to accept a .csv file upload. It's been working for months with no issues. Today I went to test a new dataset and received the following ...
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,...
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"
...
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 ...
2
votes
1
answer
8k
views
Error: Received exception event aura:systemError from server
I have create a file upload wizard (using lightning:input type="file") in which am trying to upload file upto 5MB. Am able to successfully upload file till 2.8MB but not sure after that am ...
0
votes
0
answers
152
views
How to reset uploading file using lightning file upload after clicking on cancel button in lwc [duplicate]
When I click on new button to uploading a file and click on cancel button, then again I click on new button I want to reset the previous uploaded file from there.
*...
0
votes
1
answer
878
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 ...
0
votes
1
answer
387
views
Open Standard Select Files Modal via lighting web component
I have a community page which consist of a lightning-datatable filled with Opportunity records. As an action of the table I need to add Add Files action. Onclick of this action, user should see the ...
0
votes
1
answer
641
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 ...
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:...
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 ...
1
vote
0
answers
59
views
Constructing a multipart/form-data request for transmitting a PDF to an external service [duplicate]
I'm trying to make a POST request to this specific endpoint from Apex to include what is required; a task Id and a single file. It has been very difficult.
At first, Bad Request responses was all I ...
0
votes
1
answer
2k
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 ...
1
vote
1
answer
1k
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
1
answer
2k
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
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 ...
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="...
2
votes
1
answer
591
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
2
answers
1k
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 ...
3
votes
1
answer
3k
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 ...
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?
0
votes
1
answer
370
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
1
answer
225
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
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 ...
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 ...
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/...
3
votes
1
answer
2k
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
1
answer
847
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
0
answers
36
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&...
3
votes
1
answer
9k
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
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 ...
1
vote
2
answers
3k
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
2
answers
1k
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
1
answer
4k
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="...
3
votes
1
answer
3k
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 ...
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 ...
0
votes
1
answer
921
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
1
answer
424
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?
<...
5
votes
2
answers
2k
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
1
answer
961
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
...