Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fileupload]

For questions related to the lightning:fileupload component

1
vote
0answers
20 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
27 views

How to create a multiple file uploader on LC for Public site or Standalone App? [on hold]

I'm wondering if there is any way to build a multiple file uploader that creates ContentVersion and ContentDocumentLink records. Is there any complete guide out there?!, because as you can see on the ...
0
votes
0answers
89 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
13 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
24 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
52 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
89 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
20 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
73 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
23 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
148 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
429 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
253 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
344 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
717 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
254 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
361 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 ...
0
votes
2answers
935 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
878 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
239 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
183 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 ...
0
votes
0answers
30 views

Is it possible to display a File in a formula field

I try to write a lightning component that can upload a file and display it in a formula field. I have use this first step to do it : CMP <aura:component implements="force:...
7
votes
1answer
126 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
1k 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 ...
1
vote
1answer
589 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 ...
0
votes
1answer
234 views

write test case for file upload functionality

I have a upload feature that takes a file from user(only pdf allowed) on visualforce page and then insert it in notes and attachment section of a record.My code works perfectly fine. However, I don't ...
1
vote
2answers
2k 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 ...
1
vote
2answers
290 views

Can you upload a file from a Cloudpage into a Marketing Cloud FTP

I'm wondering if it's possible to use a form upload on a Cloudpage to upload a file into our Marketing Cloud FTP? Thanks in advance! -Nikki
0
votes
1answer
127 views

How to read file(pdf or excel or outlook msg) from the path given in CSV and upload that file in Attachment object?

I have requirement where I have to read a CSV file. Using CSV file I have to insert a records in Salesforce after that I have to upload attachment in newly inserted records. CSV File will be having ...
0
votes
1answer
393 views

How to upload a New Version of an existing File using lightning:fileUpload lightning base component?

Does anyone have an idea about uploading a new version of a File in Lightning Component using the base lightning component lightning:fileUpload? I tried passing ContentDocumentId into recordId ...
1
vote
1answer
456 views

How to identify which lightning:fileUpload was clicked

I am using lightning:fileUpload multiple times inside aura:iteration. After the button was clicked and the file was uploaded, I am using onuploadfinished event to do some stuff, but I need to ...
2
votes
1answer
833 views

lightning:fileUpload displayed as disabled in community

I'm trying to implement file upload functionality following the instructions in the documentation. But the uploader is being displayed as a disabled input. <aura:component implements="...