Questions tagged [fileupload]

For questions related to the lightning:fileupload component

Filter by
Sorted by
Tagged with
0
votes
0answers
13 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 ...
-1
votes
0answers
10 views

Display files for a specific record using Lightning table [closed]

I need to display the related files in the table using lightning table. Can you please help. Thanks
1
vote
1answer
24 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 ...
0
votes
0answers
13 views

Custom CSV Upload. Issue on getting Record's as separate row (missing /n on conversion)

I created a custom CSV file upload functionality in lightning component. I am converting the CSV file as string from component controller and passing the string to apex controller (using file reader ...
3
votes
1answer
52 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 ...
0
votes
0answers
15 views

Upload JSON from Flows to Files or Static Resource [closed]

I think that I'm missing something obvious here but googling didn't help me. I have a case where i should ask the user for a JSON and a string that they need to upload/copy-paste. This will be done ...
0
votes
1answer
21 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 ...
0
votes
1answer
38 views

Lightning File preview is not working - *.csv File

I have tried using the following 2 approaches to preview a file from a Lightning quick action modal window. 1. <lightning:fileCard fileId="{!f.ContentDocumentId}" description="{!f.ContentDocument....
0
votes
0answers
15 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 ...
0
votes
1answer
23 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 ...
1
vote
1answer
77 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" ...
0
votes
0answers
12 views

Multipart multi ContentVersion Upload with Python Client

i'm trying to upload multiple files (2 in this example) with multipart using a python client. this is my request import requests import base64 import json access_token = "xxxxxx" instance_url = "...
1
vote
2answers
94 views

File content missing error while creating transient document on adobe sign using REST API

I am trying to create transient document in adobe sign using rest api. After lot of research I was able to make the correct multi form request in Salesforce Apex.But now I am getting the file content ...
4
votes
0answers
137 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 ...
1
vote
0answers
17 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 ...
1
vote
0answers
15 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 ...
0
votes
0answers
47 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 ...
1
vote
0answers
22 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 ...
0
votes
1answer
36 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' ...
4
votes
2answers
280 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 ...
0
votes
0answers
15 views

How to show uploaded image at place of file name

As i am trying to show uploaded image instead of file name.I tried this code but it is showing the image in pop up which is not the requirement.I tried another way but it was showing a broke image. ...
0
votes
0answers
15 views

Problem with annotations.csv in Einstein Object Detection

When file "annotations.csv" is uploaded in the correct form, Einstein reads only one, unique label even if there are a couple of them in the same picture. For example when I upload a file like this: ...
1
vote
1answer
25 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: ...
0
votes
1answer
567 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 ...
0
votes
0answers
27 views

Salesforce : File attachment name issue

I have an issue with attaching files to a custom object that we created. The file attachment is part of the default related files we have in salesfore. The issue happens with there are multiple dots (....
1
vote
1answer
106 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 ...
1
vote
1answer
276 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 ...
0
votes
0answers
14 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 "...
1
vote
1answer
113 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="{!...
0
votes
0answers
222 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 ...
0
votes
1answer
38 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 ...
0
votes
0answers
115 views

File upload thumbnail preview in Lightning

I would like to understand if there is any way to do thumbnail preview in salesforce on file upload I tried implementating the below but apparently it does not work without paura package/framework ...
-1
votes
1answer
241 views

Lightning File Upload Styling

I'm trying to style the lightning:fileUpload aura component to look similar to the standard Files upload component (pictured below), but I'm having trouble. Any help would be appreciated.
0
votes
0answers
283 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 ...
0
votes
0answers
23 views

Using lightning:fileupload(inside lightning Component) in VisualForce Page

I want to add lightning component which contains lightning:fileupload to visual force page.Component gets accessed succesfully but I am unable to use the functionality of lightning:fileupload since it ...
2
votes
1answer
161 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 ...
0
votes
0answers
27 views

Fetch location details of an image to geolocation field while uploading in lightning

I am trying to do a POC with the following details. I have a custom object related to Account CustomObject__c has a geolocation field which consists of Latitude and Longitude and a rich text area ...
0
votes
1answer
319 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 ...
0
votes
2answers
877 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 ,). ...
1
vote
1answer
486 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 ...
0
votes
2answers
843 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 ...
0
votes
1answer
2k 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 ...
0
votes
2answers
515 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" ...
0
votes
1answer
1k 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 ...
1
vote
2answers
3k 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 ...
0
votes
2answers
2k 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. ...
1
vote
1answer
377 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, ...
0
votes
2answers
280 views

Image dimensions validation with Lightning FileUpload component

We need to give an ability to user to upload an image related to Account in a Lightning Component. This can be easily done with standard lightning:fileUpload component without any need to send file ...
7
votes
1answer
237 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 ...
2
votes
1answer
2k 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 ...