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 [upload]

The tag has no usage guidance.

1
vote
0answers
24 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'...
1
vote
1answer
33 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
34 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
0
votes
1answer
103 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
258 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
166 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
30 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 ...
0
votes
1answer
25 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
175 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 ...
8
votes
3answers
639 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
446 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
184 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
281 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> ...
1
vote
0answers
59 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 ...
6
votes
2answers
5k 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
553 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 ...
0
votes
1answer
210 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 ...
0
votes
2answers
151 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 ...
2
votes
1answer
2k 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. ...
0
votes
2answers
350 views

AJAX Toolkit logs error “NetworkError: A network error occurred.”

I'm using the Ajax Toolkit to upload files on a VF page, like described here. The Upload works fine, the file is available and not damaged. But the response is not coming back properly. <apex:...
1
vote
1answer
77 views

Load data to instance via Apex from a source file?

Are looking to build a data-factory in order to spin up sandboxes with customized and reproduce-able data. We'd like to use a process similar to how we utilize the Test.loadData method to reference ...
0
votes
1answer
56 views

Upload events recurrence end error

When I try to upload events via the Data Loader I receive the following error "Select an end date on or before 17/02/2020.: Recurrence End" in the csv file. The RECURRENCE START DATETIME is 2015-03-...
0
votes
1answer
330 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 ...
0
votes
0answers
107 views

Upload Files using apex class and visual page

This is my apex class code : public void uploadAttachments() { String bodyStr ='\n\n\n' + System.now(); Attachment att=new Attachment(); att.Body=Blob.valueOf(bodyStr); att.Name=...
0
votes
1answer
222 views

How to deploy unmanaged package in developer org which has Person Account enabled?

I want to deploy package from sandbox org to developer org. In sandbox org I have enabled person accounts and also enabled person accounts in the developer org. Can anybody tell me the process of ...
3
votes
1answer
117 views

Upload assets to Site.com via FTP or REST API?

I am using site.com to host a mini site which works fine. I need another delivery method other than manually uploading my .zip file to my site as an asset. I have found a way to expose an endpoint ...
1
vote
1answer
2k views

BLOB is not a valid UTF-8 string

I am trying to upload a csv, and it says BLOB is not a valid UTF-8 string. public class ProductImportController{ public Blob csvFileBody { get; set; } public String csvFileName { get; set;...
0
votes
1answer
160 views

Upload Pictures from Salesforce1

How to make sure user uploads two or more pictures(before picture,after picture) before closing the status of service request. So, I have enabled feed tracking on service request custom object and ...
0
votes
1answer
624 views

Prevent Upload Files from Napili Community

I have a Napili Community and inside I have the Files List standard component. Now I must hide the Upload Files button to prevent the users to upload files. How can I do that? Thanks This Link shows ...
0
votes
1answer
317 views

enable a user to use the import wizard to upload custom object records?

How can I enable a user to use the Data Import Wizard to upload records to a custom object? Currently I have a user with Create permission on a custom object, the custom object has a Master detail ...
1
vote
1answer
62 views

Upload File Error

I've used the followed example to upload files in my app: http://peterknolle.com/file-upload-lightning-component/ At the Helper upload method, I've found the '$A.run' and it's not working anymore, ...
1
vote
1answer
102 views

Trigger to change Opportunity Stage to Closed Won if the attachment named Countersigned Order Form is uploaded

I need a Trigger as described in the title. I have a Trigger for this, but it looks like it's not working. I am not a Developer, so I don't know anything about coding. Any help will be much ...
0
votes
0answers
236 views

Upload list of ZIP codes to categorize accounts

I'm a VERY new user of Salesforce, with experience in SQL and SAS/Stata. I think what I'm trying to do is simple - the company I'm volunteering for has several hundred client accounts in Salesforce, ...
0
votes
1answer
1k views

Visualforce File Upload

Hi SalesForce rookie here! I've looked all evening and cannot find a question that seems to cover my problem so I hoped to ask. I wish to upload a file using VisualForce, a .txt file. I want to read ...
0
votes
2answers
97 views

image uploading issue

How to upload files to an outside service, larger than 3M? And this error on uploading: Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 156.719KB <apex:...
1
vote
1answer
650 views

Uploading an attachment with Request

I've been struggling with Salesforce's attachment upload API for a while, and having a hard time getting Request to format its request in a way that Salesforce is happy with. Here's what I'm working ...
22
votes
3answers
4k views

Get file from Lightning input type file

With the Spring 17 release one of the new change on the markup is the introduction of the type file to the lightning:input, however I can't seem to get the file back, only a fakepath with the name of ...
1
vote
2answers
109 views

Unit Test data accessability

Today I experienced an error that I have never experienced before. When I go into my developer console on salesforce and run unit tests for, supposedly, all of my code, I get my typical high ...
1
vote
0answers
780 views

File upload functionality in Visualforce vs Lightning Component

What is the maximum file upload limit when creating file upload solution in visualforce vs lightning considering governer limits as well. Based on my understanding, Using visualforce max size of ...
1
vote
1answer
178 views

Salesforce Document Upload through CSV file

My requirement is to upload the documents in Salesforce Documents object through CSV file using dataloader.io. There are approx 10,000 documents that I have to insert in Salesforce. I am creating the ...
3
votes
1answer
448 views

Bulk API - Upload documents (files and URL) through CSV

I have tried uploading files through CSV using Bulk API's createBatchWithFileattachment() call. It basically goes like this: createBatchWithFileAttachments(JobInfo jobInfo, InputStream batchContent, ...
0
votes
1answer
107 views

How can I send multiple emails to same person within one list?

I need to send out voucher codes via email and some contacts have more than one code and therefore need to receive the email multiple times. The contact exist multiple times in the list I upload but ...
0
votes
1answer
22 views

How to upload data to a related list that has not yet been started?

In our volunteer record type, we have a related list that has several key data points that are in a .csv file. How can I mass upload this data to the related list fields if the "new application" in ...
0
votes
0answers
139 views

How to watermark a Image (gif,jpeg and bmp) in visualforce?

When adding media for the first time, add "staroff" watermark, approx 65% transparent, about 25% of lower right hand corner. If possible, reject if detect watermark before uploading. Best Regards
0
votes
1answer
13 views

Is there a way of showing Salesforce a bunch of codes and it telling me how many exist already?

Basically I upload products into SF every week - we have had an issue with our product tool and basically may need to load in thousands that are missing. We identify every product with a 'module ...
3
votes
2answers
2k 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. ...
1
vote
1answer
169 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
525 views

How do I add products to opportunities with the data loader?

How do I mass add products to an opportunity with the Data Loader? I've tried a few times but it seems to be asking me for the price book Id not the product - quite confused by this. - Is the ...
1
vote
1answer
682 views

Limit for javascript remoting request

What I want to do is upload attachments for a record. For this, I was thinking of using javascript remoting and send attachments/files using remote action. Is there a limit for request data sent in ...