Questions tagged [fileupload]

For questions related to the lightning:fileupload component

Filter by
Sorted by
Tagged with
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 ...
Max's user avatar
  • 476
1 vote
1 answer
970 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 ...
Saariko's user avatar
  • 5,581
0 votes
1 answer
2k 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 ...
Saariko's user avatar
  • 5,581
1 vote
1 answer
194 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 ...
Thomas Hockey'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
1 answer
570 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 ...
TheArchitecta's user avatar
6 votes
1 answer
333 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 (...
Osama Awad's user avatar
3 votes
2 answers
3k 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 "...
Jwok's user avatar
  • 767
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
1 vote
2 answers
8k 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?
Yevhen Kharchuk's user avatar
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
1 vote
1 answer
503 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
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
1 vote
1 answer
1k views

Is it possible to delete files as a guest user in a community?

Background: I have a form in a community that creates a case, and then sets that case record id on a lightning-file-upload component which allows users to upload files and attach them to the case ...
Sarah Ganci's user avatar
3 votes
1 answer
2k views

Is it possible to upload files as a guest user in a community?

Is it possible to upload files as a guest user in a community? I am using a lightning web component lighting-file-upload component with a case's id as the recordId. The file upload works for ...
Sarah Ganci's user avatar
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
43 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
466 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
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
11 votes
2 answers
9k views

How to upload larger size file using input tag of type html in LWC

I have implemented custom file upload component using input file html tag and rendering it as browse file button. The issue with component is:- When trying to upload file more than 4 mb of size, i ...
Vikas V's user avatar
  • 111
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
2 answers
3k views

How to make lightning:fileUpload component required field on flows?

I am using lightning:fileUpload component in flows embedded on community page. I want to make this mandatory/ required so that the user sees an error if they click next without uploading a file. I ...
user74813's user avatar
1 vote
0 answers
161 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
0 votes
1 answer
286 views

[APEX][File System] Save and Read KML files with APEX

I am new to Salesforce and Apex.I have a requirement of uploading a KML file to Salesforce and save it in a Workspace named 'My Files'. Then I should be able to list down filenames of 'My Files' ...
Isuru Buddhika Herath's user avatar
7 votes
4 answers
4k views

Winter 20 breaks communities guest file upload

We have a community which has a lightning:fileUpload component for guests to upload anonymous file attachments to their created records. The guest user creates a new record via a global action which ...
J Dubbs's user avatar
  • 382
1 vote
1 answer
451 views

Can't Convert to String some special Chars

I have a file to insert Accounts ,but some fields like account name have values with special characters like 'ñ' ,and Im having this error "BLOB is not a valid UTF-8 string" when I execute this query: ...
Dead_end_Developer's user avatar
4 votes
3 answers
10k views

File Upload component in Flow - no indication that files where uploaded

I am using the File Upload component in Flow. It works good, but I have no indication that the files where uploaded. So the flow looks exactly the same before and after I upload files: Before ...
Itai Shmida's user avatar
  • 4,995
1 vote
1 answer
3k views

How to get the Content document Id for file that was just uploaded for a custom object

I have a requirement to allow a user to upload a csv and the system needs to process the file. I am planning to write an apex batch that is scheduled when a file is uploaded. The batch will need to ...
user3700866's user avatar
1 vote
1 answer
3k views

Trigger on content document to retrieve the body

I believe this question is a possible continuation of this other question: How to retrieve the file content for a ContentDocument object? I am trying to get the body of a JSON file that is uploaded ...
manza's user avatar
  • 1,945
0 votes
0 answers
19 views

ErrorObjectNotFound javascript error on upload csv

I was working on a feature to load records as picklist values on to a custom lookup component from a csv upload. The functionality was working as expected, but I get an error that says "...
MnZ's user avatar
  • 3,152
1 vote
2 answers
2k views

How to upload Files as Guest Community User

According to Spring 19, it should now be possible to upload files as a Guest Community user. But if you try either of, <lightning:fileUpload> . <lightning:input aura:id="fileId" onchange="{!...
Pasan Eeriyagama's user avatar
0 votes
0 answers
980 views

Chatter Error: Failed to load resource: the server responded with a status of 401 (Unauthorized) when uploading a file as community guest user

Background I am uploading a file as a community guest user, but I am getting this error message: There was a problem uploading your file. Please try again. Displayed here: And this error in ...
Robs's user avatar
  • 9,187
0 votes
1 answer
100 views

ASP.net calling Salesforce webservice to upload attachment

i have a website created using ASP.net and i would like to allow people to upload files from the website and i want those files is then store in Salesforce. I am not good in webservice but i think ...
hyhy15's user avatar
  • 71
0 votes
0 answers
1k views

Limit file size to 2 MB for fileUpload Lightning compoennt

I have a requirement where i need to restrict the user to not upload the file size more than 2 MB. We are using lightning:fileUpload , for which i don't see any size parameter. We are uploading file ...
RaJu's user avatar
  • 361
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
1 vote
1 answer
1k views

Lightning File upload to refresh a child component after file upload

I am trying to do 2 things here 1.Custom file upload using Lightning:fileupload 2. List of files attached to the same record. I an hoping after a file is uploaded, the list should refresh after the ...
Hara Prasad Sahoo's user avatar
0 votes
2 answers
3k views

How to parse CSV file in lightning Javascript

Currently I had built a file upload functionality in Lightning component which accepts the CSV file, read it as text(Each row in CSV is split using \n and each column in the row is split using ,). ...
Sindhuja's user avatar
  • 133
1 vote
1 answer
1k views

lightning:fileUpload bug?

[SEE UPDATE AT BOTTOM] I'm using sfdx and a scratch org to develop/test my app, which uses the lightning:fileUpload component in two separate components (one for browser, the other for mobile). It ...
PatMcClellan__c's user avatar
0 votes
2 answers
2k views

Append files to the first upload in <lightning:input type="file">

I am using the following code in my lightning component to upload multiple files <lightning:input aura:id="fileId" onchange="{!c.handleUploadFinished}" type="file" name="file" label="Upload ...
Madhurima's user avatar
  • 1,265
0 votes
1 answer
4k views

For multi-file upload same file being uploaded twice

I am using the following to upload multiple files in Salesforce custom lightning component. http://sfdcmonkey.com/2017/09/25/file-upload-lightning-component I my component, I have the following code ...
Madhurima's user avatar
  • 1,265
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
3k views

lightning:fileUpload is coming as disabled

I have a lightning component which has a form. The details provided in the form in turn creates a case record in the back-end. I want to attach multiple drag and drop files along with the details ...
Madhurima's user avatar
  • 1,265
1 vote
3 answers
9k views

using Lightning:fileUpload to attach files to a record that isn't created yet

I am building a lightning component to replace the standard "Contact Support" form on our lightning community. Lightning is new territory for me, so I am learning all I can from documentation. I ...
Morgan Marchese's user avatar
0 votes
2 answers
3k views

Upload CSV file in lightning component

I need to upload CSV file(standard template with data to create new opportunity records) in lightning component and read this csv file in apex and insert opportunity records. Please find my code. ...
Sindhuja's user avatar
  • 133
1 vote
1 answer
1k views

Use visualforce page from Buttons, Links, and Actions in custom lightning component in case of S3 Amazon Uploader

Is it possible to use a Visualforce Page from Buttons, Links, and Actions in custom lightning component in case of S3 Amazon Uploader? I have an object NEILON__File__c. The object in its Buttons, ...
iloveseven's user avatar
  • 1,105
7 votes
1 answer
1k views

What setting controls how many files you can upload simultaneously using lightning:fileUpload?

I want to use <lightning:fileUpload/> to upload multiple files in my lightning component. In the documentation for this component, it is said that: By default, you can upload up to 10 files ...
Oles Malkov's user avatar
  • 2,161
3 votes
1 answer
6k views

Lightning File Upload Component - Event Not Firing

I have implemented the lightning:fileUpload component within my own component, and I've used the sample code provided in order to test it out. The issue I'm having is that it looks like the event ...
Justin Stroud'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
5 votes
3 answers
14k views

Correct approach uploading File using REST API (file size 100 MB)

Looking for best REST API to upload a file to a record with at least file size 100MB? I have created custom REST API handles POST call, inserts both ContentVersion, ContentDocumentLink records (Base ...
Mahesh Pasupuleti's user avatar