Questions tagged [fileupload]

For questions related to the lightning:fileupload component

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

LWC: Standard file upload does not update field in file-field-name attribute

I'm using my LWC to upload photos as Files for a specific Custom Object within a community. <lightning-file-upload label="Upload your photo" record-id={obj.Id} onuploadfinished={...
0
votes
0answers
12 views

Lightning input File upload

Can anyone suggest me what is the limit of file upload using lightning input. I am uploading file content chunk by chunk.. Some help articles suggest of 4.5 MB being the limit but i get size error on ...
0
votes
0answers
6 views

'Add Files' button not showing in Files Related List in Case object

'Add Files' button not showing in Files Related List in Case object. This is happening for a single odd users. other users having same profile is having that button. What can be the issue?
0
votes
1answer
37 views

Drag Drop from Popup not working on Mozilla Firefox and Internet Explorer for lightning-input type=“file” in LWC

I have the following code for File input in LWC. The drag-drop works fine for chrome, edge browser. But for Mozilla Firefox browser and Internet Explorer, If we select the button and open the popup ...
0
votes
0answers
24 views

How to create a public Url for an attachment? [duplicate]

I used a lightning:fileUpload to insert a file into the Attachment object: <lightning:fileUpload recordId="{!v.patientId}" aura:id="fuploader" name="files&...
0
votes
0answers
37 views

Guest users are unable to upload a file in a community

We have a community which has a lightning:fileUpload component for guests to upload anonymous file attachments. At the point of creation the attachments have no parent and are assigned to the default ...
0
votes
0answers
35 views

Marketing Cloud Automations Failing - Transfer Activity - Eye Symbol

We started experiencing a group of automations failing. Automations that hadn't failed in the past but for some reason began to fail upon the file transfer activity. When I look at the file transfer ...
0
votes
1answer
57 views

Unable to upload large files (not above 4MB) as attachment with apex class method from LWC. How to overcome this issue?

LWC method to convert selected file content to base64 String and call the apex method for uploading as related Notes and Attachment on a particular record myComponent.js const toBase64 = file => ...
0
votes
1answer
25 views

Restrict file size Lightning file upload?

I have a Lightning file Upload component I am using Lightning:fileupload . so user tries to upload more than 100MB. I want to show an error message, it is possible?
0
votes
0answers
23 views

upload live camera capture photos only using lightning-file-upload

I have a requirement to upload documents from camera only and not from phone's gallery/album or something like i can check the created/lastmodified date of the file to check if it is captured at that ...
0
votes
0answers
28 views

I am using LWC component as the UI and get few input parameters and file upload. I want the file and the metatags to be saved in postgreSQL

The LWC component gets the few parameters as input in UI and a upload file functionality is also there. If I upload the file, the file and the above given metatags should also be sent via the POST ...
0
votes
1answer
36 views

How to align two lightning components side by side?

I have a fileUpload in my aura:component, and I want to diplay a formattedUrl next to it on the same line. This is the code I have used: <div> <span><lightning:input aura:id="...
2
votes
1answer
142 views

LWC: Maximum Blob Size From JS To APEX

I want to make a "custom file upload" LWC component as I am in need to build a specific design for an upload process. There are a few things I am not sure about. What would be the maximum size of a ...
0
votes
0answers
24 views

How can I upload a file in a specific library with rest api?

I'm trying to upload a file in Salesforce with postman at this url: /services/data/v48.0/sobjects/ContentVersion I need to be in a specific library so i'm using FirstPublishLocationId field. this ...
0
votes
0answers
16 views

Document upload filename showing error

I'm getting this error after uploading the document: This page has an error. You might just need to refresh it. First, would you give us some details? (We're reporting this as error ID: -...
1
vote
0answers
81 views

How to upload a Salesforce File using REST API properly?

GET /services/data/v47.0/sobjects/ContentVersion/0000v00000MFIVgAAP/VersionData from this request I will get binary file content, but how can I use this content to recreate the file properly (using ...
0
votes
1answer
75 views

How to attach contentversion to record in Javascript

I am working on a solution to avoid to surpass the viewstate limit when uploading a file. Currently with javascript I create a record and create a contentversion but the contentversion is not attached ...
0
votes
1answer
10 views

Can we add the same file to two different records at the same time

I'm using lightning:fileUpload in my lightning component to upload files. Now I need to upload the same file to both parent and child case at the same time. Is there any possibility to do that? <...
1
vote
0answers
42 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 ...
1
vote
1answer
128 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 ...
0
votes
1answer
192 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 ...
0
votes
1answer
176 views

File upload component in flow doesn't work when launched in VisualForce

I've created a Flow with a File Upload Component which works perfectly when ran as Flow. However, when I'm running the flow, via a visualforce page, the file upload component doesn't work as expected. ...
1
vote
1answer
46 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 ...
0
votes
1answer
19 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. ...
0
votes
0answers
56 views

How to upload image to Salesforce from a native iOS app built using Salesforce Mobile SDK?

I want to upload an image to Salesforce database from my native iOS app built using Salesforce mobile sdk. I heard we should be making use of ContentDocument, ContentVersion & ContentDocumentLink ...
0
votes
1answer
46 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 ...
8
votes
1answer
63 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 (...
1
vote
1answer
146 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 "...
0
votes
0answers
90 views

lightning:fileupload not working in flow in Salesforce Mobile

I've built a flow that needs to allow my client to upload files on a couple of the screens. The flow needs to run inside the Salesforce mobile app on Android. I've tried both the standard flow "file ...
1
vote
1answer
194 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 ...
0
votes
1answer
345 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?
0
votes
0answers
32 views

Error in moving audio content to azure retrieving with apex callout

I am making a callout to a 3rd party to retrieve an mp3 file The endpoint is a HTTP GET (https://media.ringcentral.com/restapi/v1.0/account/~/recording/RECORDINGID/content) The response is the actual ...
1
vote
0answers
321 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. ...
1
vote
1answer
53 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 ...
0
votes
0answers
20 views

Customize “File List” Community component to remove tabs like “Shared with me” and “Recent”

I have a requirement to allow community users to upload files to specific Salesforce Libraries, which I am currently satisfying using the "File List" community component. However, I only need users to ...
0
votes
0answers
32 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
vote
1answer
214 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
26 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
321 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
1answer
27 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
241 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
21 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
50 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 ...
2
votes
1answer
469 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
123 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
259 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 ...
6
votes
0answers
1k 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
64 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
42 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 ...
1
vote
2answers
461 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 ...