Questions tagged [fileupload]

For questions related to the lightning:fileupload component

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

File Delete Access to Certain Group of Users [closed]

Whenever a Content Document is Uploaded on a record, I need to Share the file to a group of users and give delete Access to the same users. I've Implemented a trigger to share the Document With the ...
0
votes
0answers
24 views

share a file with collaborator to a user [closed]

I need to write a trigger to share a file with a certain user or group of users whenever a file was uploaded. I've tried some code. But, After saving the trigger, I Can't Upload any file. Could you ...
2
votes
2answers
35 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
22 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
41 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
42 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
28 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
27 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
32 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
28 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
54 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
150 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
161 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
34 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
22 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
50 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
163 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
38 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
17 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
82 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
42 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
87 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
62 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 ...
3
votes
1answer
835 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
24 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
39 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
34 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
229 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
17 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
69 views

File upload not working in Lightning and Safari browser

I am unable to upload files in Lightning, using Upload Files option in Safari browser. Repro Login as an admin or standard user Go to opportunity record Hover the mouse cursor & Click on the '...
0
votes
0answers
39 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
45 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
1k 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
86 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
212 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
73 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
176 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
504 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:...
0
votes
0answers
118 views

app_storefront_base not uploading to sandbox

I am unable to upload app_storefront_base cartridge using prophet uploader to my sandbox, when I run the command, Prophet:Clean Project/ Upload All. All the other cartridges are uploaded, only the ...
0
votes
0answers
10 views

Attach files to email [duplicate]

I have a custom object 'interview outcome' that is used to sent automatic email via process builder to update the candidate about the interview outcome. I want a field 'Attachment' so that the admin ...
1
vote
1answer
288 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
43 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
1answer
517 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
1answer
300 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
560 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
56 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
0answers
114 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
1answer
222 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
146 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 ...
2
votes
1answer
926 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 ...