Questions tagged [fileupload]

For questions related to the lightning:fileupload component

Filter by
Sorted by
Tagged with
-1
votes
1answer
21 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 ...
-1
votes
0answers
12 views

Find count of total salesforce files uploaded in lightning org

I have to count total number of salesforce files already uploaded in a salesforce lightning org. SOQL on ContentDocumentLink directly does not work. Is there any other way to find the total count of ...
-1
votes
1answer
37 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 "...
0
votes
0answers
27 views

Aura:Carousel:- How to show file in Carousel from fileupload . i tried through Hard Coded value . i also uploaded screenshot with hardcoded path

Component :- <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction" access="...
-1
votes
1answer
144 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": [ {...
0
votes
1answer
35 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 ...
0
votes
0answers
12 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 ...
0
votes
0answers
17 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 ...
0
votes
0answers
9 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'...
0
votes
1answer
33 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 ...
1
vote
1answer
44 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 ...
0
votes
0answers
35 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 ...
0
votes
1answer
229 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
2
votes
2answers
316 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 ...
0
votes
0answers
38 views

Uploading Image into salesforce as a field value/as a record

I'm pretty much an absolute noob in Salesforce. I want to create a solution wherein a user can just upload an image via a page in a custom lightning app from the Salesforce mobile app. I have a custom ...
0
votes
0answers
46 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 ...
0
votes
0answers
67 views

Importing delta files in proper order in Marketing Cloud

User wants to be able to import daily delta files with a timestamp, i.e. using the %%Year%%%Month%%%%Day%% wildcard on the filenames, which is simple. However, in instances where upstream file ...
-3
votes
1answer
30 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?
0
votes
0answers
30 views

Is it possible to create direct link in apex trigger or any other solution to ensure file attachment is required before save?

I want to create a required file section where it will pop out error if no file is attached before save? Since the file section as in image shown cannot be created inside my custom form, can i create ...
0
votes
0answers
56 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....
2
votes
0answers
55 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 ...
0
votes
1answer
180 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 &...
1
vote
2answers
419 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 ...
0
votes
1answer
311 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 ...
0
votes
0answers
98 views

lightning:fileupload upload file button does not show file browser for some users using chrome

I have a aura file upload component, and it has worked for over a year now. However I have one user where, when she clicks the upload file button, nothing happens (no file browser opens). If she ...
0
votes
1answer
26 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 ...
0
votes
1answer
78 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
0answers
418 views

LWC: lightning-file-upload dismiss or X button malfunctioning

I have the below LWC lightning-file-upload component. fileUpload.html <template> <lightning-card title="File Upload" icon-name="custom:custom19"> <lightning-file-...
0
votes
1answer
65 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
0answers
23 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
1answer
237 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
1answer
52 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
0answers
139 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
2answers
108 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
1answer
1k 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
0answers
32 views

Upload file without RecordId ContentDocumentLink

I am trying to upload a file from Lighting component. and I am using ContentVersion to upload file (successfully uploads) and ContentDocumentLink to get a link so that I want to share it publicly. But ...
0
votes
0answers
44 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
0answers
58 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
1answer
417 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
0answers
23 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
0answers
41 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
0answers
60 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 ...
0
votes
1answer
2k 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
0answers
134 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
1answer
294 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
1answer
102 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
1answer
264 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
0answers
817 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
1answer
455 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
0answers
49 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 ...