Questions tagged [upload]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
4answers
6k views

Visualforce Error System.TypeException: Invalid decimal:

I have written Apex code and VF page for uploading records for my custom object. While uploading the CSV file into system via programatically I am getting the error "Visualforce Error System.Type ...
3
votes
2answers
3k views

uploaded zip files changing Mime type to application/octet-stream in static resources

I'm trying to upload a zip file in static resources. Even after selecting a .zip file to upload , the uploaded document is displaying mime type as application/octet-stream instead of application/zip. ...
0
votes
0answers
35 views

How to upload a file to an external data source (e.g. Sharepoint, Google Drive, etc) in Salesforce via Files Connect

How do you upload a file to an external data source (e.g. Sharepoint, Google Drive, etc) in Salesforce via Files Connect? Is this even possible. I've read the Salesforce articles, I've watched a ...
0
votes
0answers
10 views

When re-uploading/updating a .CSS file Pardot won't accept it?

So I have uploaded a .css file which Pardot/Salesforce trail blazer site is an accepted file format, it has been working and still is on multiple Landing Pages, however I have amended it and am going ...
0
votes
1answer
752 views

Upload a file to External Systems (Document repository) with document metadata

I am trying to upload a file to external system (Veeva Vault) using visualforce and HTTPCallout. I was able to implement this with Postman but, unable to put the same in Apex. I get the below error ...
1
vote
2answers
43 views

How to download all the code to local system?

I have been creating a lightning app for 3 months and I have completed it. I wrote all my code in the Salesforce Developer Console. So, my question is, is there any simple way to get all those codes (...
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
1answer
527 views

Lightning File Uploader in communities as external user?

Our team is trying to create a generic file uploader lightning component to use as a base component for a set of forms that need to be displayed in a community, but we keep finding issues or ...
2
votes
2answers
273 views

Bulk API 2.0 Upload for files bigger than 150Mb

I'm trying to use the Bulk API 2.0 to upload big files. I need to know how I have to upload the data in case the file converted to base64 exceeds the 150Mb allowed. After reading the documentation I'...
0
votes
0answers
15 views

Naviagtion items are missing after installing the app

I created an app in salesforce and it has a Navigation item called 'Patients' which displays a list. This is the screeshot: Now, i created a managed package for this app and uploaded as beta. After ...
0
votes
2answers
435 views

How to upload files as a FeedItem with file Attachment onto a record from Lightning?

I have been using this code to add the ability to take pictures of inventory once the customer has audited it- http://www.sfdcmonkey.com/2017/09/25/file-upload-lightning-component/ However, we need ...
1
vote
1answer
2k views

LWC file upload issue

I use the sample below to do the upload file in LWC: html: <template> <lightning-file-upload label="Attach receipt" name="fileUploader" accept={acceptedFormats} ...
1
vote
0answers
118 views

Upload file to google drive from Lightning component - Page redirect removing URL

I am trying to achieve functionality to upload a file from Salesforce to Google drive. I have done following 1. Google project credentials (Client key , secrete key) 2. Enabled Google drive API 3. ...
0
votes
1answer
37 views

Questions using Workbench: Aborting data upload; modify the batch size; turn off the auto-mapping

I use API version 47.0 I've been testing out the usage of Workbench in our sandbox and had some questions: How do I abort a data upload in Workbench without having to go into setup in Salesforce ...
0
votes
0answers
73 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
13 views

How to create a file from mobile sdk?

I've got a mobile app using the Salesforce Mobile SDK and I want to upload a large ~10mb JSON file. I'm trying to use sendRequest on endpoint: /services/data/sobjects/ContentVersion in order to ...
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
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
135 views

How we post Comment with File Upload using chatter rest Api

My Question is How we upload file as attachment while posting comment to user using chatter rest api. I have check this in Chatter rest Api Document , and i found following link https://developer....
0
votes
2answers
105 views

Upload a file via Apex

How can i upload a file from my client PC via Apex ? I need it for a test class so i cannot make api callout. I try this but without success String yourFiles = 'Lets assume this is your binary string ...
10
votes
3answers
9k views

What are permissions are needed to upload a file via a public Salesforce community page?

I would like to be able to upload files using <lightning:fileUpload which is on a public community page. The community is using template: Customer Account Portal. The files would get attached to ...
0
votes
0answers
135 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
1answer
55 views

Batch callout: How to upload Attachments from multiple objects (dynamically)?

I am trying to upload an Atttachments based on the selection and criteria from Lightning Component that will be saved to Custom Setting. For example, the criteria is Opportunity - Stage - Closed Won, ...
1
vote
1answer
114 views

Uploading CSV with accented/special Characters using VFpage

I'm currently working on a vfpage that can upload records using CSVs similar to this project. But, the records in the CSV may contain accented characters from spanish alphabet. So, when I attempt to ...
0
votes
1answer
27 views

Get test failures dynamically (as it goes) when uploading package, but not all at once in the end of upload process

When we are uploading our huge managed package, it takes up to 3 hours for process to finish and the major part of it are taken by tests execution. The inconvenience here is that tests failures are ...
0
votes
0answers
238 views

LWC can't call apex with large body size > 3 Mb

I am getting Error: Received exception event aura:systemError from server somewhere inside of aura_prod.js when call apex with large body (>3Mb). import upload from '@salesforce/apex/Upload.upload'; ...
0
votes
0answers
96 views

How to permanently delete Salesforce File ID

Currently have an upload system using Lightning components, here's the code: <lightning:fileUpload name="additionalFile" label="Upload up to 4 additional photos to include in your campaign page ...
1
vote
0answers
82 views

Google Drive resumable upload using Salesforce lightning

I have been trying to upload a large file (maybe greater than 25MB) from Salesforce lightning to Google drive, referencing - https://developers.google.com/drive/api/v3/manage-uploads#resumable ...
2
votes
1answer
136 views

Upload beta package - how to bypass or speed up tests execution

We have our huge managed package (1st generation, i.e. classic one) and every time when we upload new beta version (even with just a few fixes) it takes up to 3 hours for the whole process to complete ...
0
votes
0answers
28 views

load a file and read the information in the file [duplicate]

I am looking to open an excel file via an apex dialog box, then browse the information in my file line by line and display them with visualforce
3
votes
1answer
5k views

Upload file and attach it to contentDocument

I'm trying to develop a functionality that upload files and attach it to my opportunity ContentDocument (and not attachment) like my standard component do . I'm wondering when i'm saving my uploaded ...
10
votes
2answers
6k views

How can I upload/change user's profile image programatically or via API?

I know, that there is no way to mass-upload these images via dataloader as described here can I upload user's profile image via data loader https://success.salesforce.com/ideaView?id=...
1
vote
1answer
499 views

How to upload files to a related record using lightning components?

I'm trying to upload a file to a related record using just the <lightning:input> component. The <aura: component> includes the force:hasRecordId and by using {!v.recordId} I am able to ...
0
votes
2answers
142 views

Cloudpage form upload an image into the content builder

Is it possible to create a cloudpage form with an input field that upload for example an image into the content builder? Regards, Martijn
1
vote
1answer
327 views

How can i use Files Connect to upload an attachment with apex, to Google Drive?

I'm new to this salesforce world and i recently discovered i can synchronize my salesforce instance with a Google Drive. I already have a connection established using Files Connect to my Google Drive, ...
0
votes
1answer
2k views

How can i upload files

I have created simple component to upload files with following code: <aura:component implements="force:appHostable" controller="BeetleEyeAssets"> <aura:attribute name="accept" type="List" ...
0
votes
2answers
1k views

How to check Mime Type (Content Type) of a file? [duplicate]

I want to restrict a file upload based on extension type and mime type. However i found the fileextension field will always be null in before or after insert contentversion trigger and filtype field ...
0
votes
1answer
62 views

File upload via related list not working in IE11

at the moment I'm facing a really weird issue: I have a custom VF page, that embeds <apex:relatedList list="CombinedAttachments"/> and also a custom VF component. The uploading of files ...
1
vote
1answer
681 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
0answers
34 views

Glitches on after some code is uploaded

I use WebStrom + Illuminated Cloud 2 to upload code to my sandboxes. Sometimes I'm uploading some component and apex classes, and in my log view confirms that my code was completely uploaded. example ...
1
vote
1answer
224 views

API Service Base64Encode Not Accepting Files more than 5mb

I have written a API Service, but that's not Accepting Files more than 5mb, Here i am sharing my Code Snippet please tell me whats the issue. Code: @RestResource(urlMapping='/SympRESTApi/*') global ...
0
votes
0answers
1k views

Why I am getting “ Attempt to use invalid header in request”

I am trying to upload a file by using REST API in salesforce but getting the above error. public static PageReference upload(String at,Blob b,String f,String ft){ String ...
0
votes
1answer
869 views

Upload attachment to Opportunity with inputFile on a VF component

I have been using a basic upload method for about a year on a couple of different custom visualforce pages and it's been working successfully. I am developing my first component and unfortunately, ...
0
votes
1answer
642 views

Check File Size on Upload in Visualforce [closed]

When uploading a file via the Visualforce apex:inputFile standard component, if the file size exceeds the 3Mb limit I would like to display a message to the user that the file is greater than 3Mb and ...
0
votes
1answer
608 views

CSV file column validation

I've implemented an apex algorithm to upload a CSV file into Salesforce. In the CSV file there are 7 necessary columns and I keep all of them in a list of strings: private List<String> ...
2
votes
1answer
4k views

Call Apex method from lightning component fails to execute

I have developed a lightning component to upload files into the File Salesforce object. This component has been developed based on Peter Knolle article on how to do that in the lightning framework. ...
6
votes
2answers
7k views

lightning:fileupload - Reduce number of files to upload to a single file at a time

As I understand, the multiple attribute, when set to false, will limit the number of files uploaded at a time to 1: Specifies whether a user can upload more than one file simultanesouly. This value ...
3
votes
0answers
50 views

My hard-coded string is modified during Upload or Install process!

In my VisualForce page I've used one component three times. This component has an attribute called tableTitle which gets a string and shows it on my table. This table component is in a package (let's ...
1
vote
1answer
2k views

How to unit test file uploading?

The code as written below uploads a file to salesforce, then redirects the user to a specific page. public class ContentController { public contentController() { file = new ...
19
votes
2answers
12k views

Loading files greater than 5M using VF page

I have a VF page that is used to load files to AWS. In the past the files were smaller and the 5M VF limit was fine. Now most of the files are larger than 5M and I can no longer upload them using this ...