What's the deal with Deno? We talk with a major contributor to find out. Listen now.

Questions tagged [fileupload]

For questions related to the lightning:fileupload component

53 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
2
votes
1answer
556 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" ...
2
votes
1answer
286 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 ...
1
vote
1answer
26 views

Upload ContentVersion to SF via JS

I am developing a visualforce page. I'm trying to upload pdf-file from remote server in contentversion , here is part of my code: let response = await fetch('http://www.africau.edu/images/default/...
1
vote
0answers
92 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 ...
1
vote
0answers
52 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
2answers
267 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 ...
1
vote
0answers
420 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
56 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 ...
1
vote
2answers
297 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 ...
1
vote
0answers
81 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
43 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
0answers
25 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 ...
1
vote
1answer
345 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
461 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="{!...
1
vote
2answers
807 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" ...
1
vote
1answer
1k 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
17 views

Rich Text pictures - how to find and manage them

is there a way to find and address picture uploaded via Rich text editor? How they are stored in system? Can reuse uploaded files somehow in different rich text field?
0
votes
0answers
23 views

File Upload LWC along with record type id

The reason I try to develop File Upload component is to get over the Record Type Issue here . I follow the documentation and try to get it upload by defining record type id mentioned in documentation ...
0
votes
2answers
23 views

Unable to restrict Multiple File Uploads using Lightning:FileUpoad

Am using LightningFileUpload component with Multiple set to false.But i still get the option to upload multiple files, upload button is not disabled after single file upload. Will this false attribute ...
0
votes
0answers
26 views

How can I add attachment to related list of object when the user is not logged in?

I have a Visualforce page with lwc components in Site, which does not require user to log in. Here the requirement is to upload a file as attachment to a Custom object. In other places we had login ...
0
votes
0answers
16 views

upload file in lightning component, have it appear on files related list on the object?

i'm working on a custom lightning component, and i want the user to be able to attach a document (multiples allowed) and have it attach to the files related list, file format should be pdf. i also ...
0
votes
0answers
15 views

Upload files via lightning:fileUpload

I am developing a visualforce page. I need to download several pdf files from remote server to ContentVersion. I was surprised that I can't directly upload fetched file's blobs to the lightning:...
0
votes
0answers
46 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
13 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
8 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
0answers
104 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
38 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
74 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
0answers
43 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
40 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
0answers
26 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
18 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: -...
0
votes
1answer
234 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. ...
0
votes
1answer
20 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
75 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
0answers
101 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 ...
0
votes
0answers
35 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 ...
0
votes
0answers
25 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
38 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 ...
0
votes
0answers
30 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 ...
0
votes
1answer
30 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
300 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
22 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
54 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 ...
0
votes
0answers
137 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 = "...
0
votes
0answers
17 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 "...
0
votes
0answers
457 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
66 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
564 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 ...