Questions tagged [upload]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10
votes
3answers
6k 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 ...
7
votes
2answers
4k views

“REGEX too Complicated” error

Is "REGEX too Complicated" error while attempting to upload a CSV via Apex into SFDC an undocumented limit? What should be the optimal data volume for a CSV upload via Apex? I was trying with 10,000 ...
19
votes
2answers
11k 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 ...
18
votes
5answers
9k views

Resize Image in Photo Upload in Visualforce before save in attachment?

Good Morning Friends, I am creating a Visualforce for my users to upload photos and these photos are saved in the attachments object, but I wonder if there is any way before the picture is saved I ...
10
votes
2answers
5k 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=...
5
votes
2answers
2k views

Upload files upto 2GB from Apex

How to upload a file of size 2GB from Apex? Is there any sobject that I can make use of?
25
votes
3answers
7k 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 ...
2
votes
1answer
10k views

Upload files to a Case in SalesForce via REST API

I'm working on uploading attachments from my website to Salesforce, attachments should be related to case object. I'm using REST API in PHP. So problem is that I get an error when I tried to upload ...
8
votes
3answers
5k views

HTML equivalent of apex:inputFile?

Is there a html equivalent of <div id="file"> <apex:inputFile value="{!attachment.body}" filename="{!attachment.name}" id="file" title="Upload Attachment" styleclass="fileType"/&...
8
votes
2answers
6k views

Uploading file via visualforce page error “Maximum view state size limit (135KB) exceeded”

I am trying to implement a page that I will upload files through it, but I keep having this error Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 158....
1
vote
1answer
827 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 ...
3
votes
2answers
3k views

How to upload 6Mb attachment in a custom Apex Rest service (heap size issue)

I have a .Net app, which works with SFDC via REST API. Not so long time ago we faced with big files. Usually they were around 2-3 Mb and it was OK for both .Net app and SFDC. Now there are some ...
2
votes
1answer
980 views

Upload CSV in different encoding than UTF-8

Is it possible to set an encoding for a file that is uploaded via a VisualForce page? I am getting errors stating that the content of the uploaded file is not UTF-8 encoded. Ideally, the user would be ...
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. ...
1
vote
2answers
2k views

Upload file on google drive

I Used below code after accessing client id and secret key but i am not able to upload file on google drive. Apex code public class GoogleDriveController{ //Fetched from URL private String ...
1
vote
1answer
1k 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
0answers
172 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