Questions tagged [upload]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
572 views

Salesforce HttpRequest blob results in Internal Server Error

I am currently uploading files to a third-party storage space through its API. This is the API through Java which was uploaded: HttpPost post = new HttpPost(url); post.setHeader("Token", ...
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 ...
1
vote
0answers
452 views

Uploading a file from mobile Andoid to force.com

I want to upload an image that I get from my camera mobile to force.com, but i have an error that i couldnt handle. Here is my code , if you have any ideas, please share. Thank you! private void ...
4
votes
2answers
5k views

Salesforce isn't handling Base64 Encoded attachments uploaded via Rest API

I'm uploading an image as an attachment to an object in Salesforce via Rest API v32. My HTTP request body looks like so: --boundary_string_1416597802788 Content-Disposition: form-data; name="...
1
vote
1answer
43 views

Strange Code coverage

I got in some strange situation. When I'm trying to upload package to sandbox it says that I have only 71% of code coverage and when I check it in setup it says 79%. What can cause it?
1
vote
2answers
9k views

Upload and download files/attachments

I am building a custom application in Salesforce using HTML. The user who logs into the application should be able to upload multiple documents and download the same once they are uploaded. I want to ...
4
votes
4answers
11k views

How to resolve the Invalid Date error in Apex while uploading CSV file?

I am trying to upload the CSV file via Apex programming I am getting an error like Invalid Date Error. Please find the screenshot for more details. I have given code like this site.Approved_Date__c =...
-1
votes
1answer
62 views

List out of bound in below code

I am getting list out of bound error here in below code. Can someone please help me? Apex class snippet: for(Incident_abv__c inc : [select Name,Id from Incident_abv__c where name=:csvRecordData[j]])...
1
vote
1answer
124 views

Update based on csv data

I have a requirement to update records of custom object Incident_abv__c if the value of it's Name field in present in csv. I have below class and page to do the same. But when I click the Read csv ...
2
votes
1answer
695 views

Can I Upload Documents from PHP Toolkit?

I want to upload files into the document library. Is it possible to do this with the PHP Toolkit?
4
votes
1answer
3k views

How to Check if the uploaded file is Image

Can anyone tell me how to validate the uploaded file is image using blob data type? My vfp: < apex:page standardController="Contact" sidebar="false" extensions="DpConnectApiExt"> &...
0
votes
2answers
721 views

Error with HTML tag for image static resource

I am getting an HTML tag output instead of the Image in a formula field. The image is stored as Static resource in salesforce. Can someone let me know the possible reason for the error and a way out ...
4
votes
0answers
397 views

How to abort a package upload?

Is there a way to abort the upload of a managed package? After I clicked the Upload button I realized I have forget something. Do I have to wait and upload another package or is there a way to stop ...
2
votes
1answer
1k views

Is it possible to populate a field of type Auto Number External ID?

I'm trying to populate a Lookup using External ID which is Auto Number field. It is giving the error: Compile Error: Field is not writeable: Opportunity.Opportunity_Number__c Opportunity_Number__c ...
1
vote
2answers
47 views

Best Practice for uploading contacts across objects

Whenever I go to conferences and get info from people. Then I have to add them as a contact, but I have to make sure the contact doesn't already exist and I have to make sure an account already exists ...
2
votes
2answers
83 views

How to load data into salesforce when I've run out of licenses?

I have 10 saleforce.com licenses assigned to Sales Rep. Data admin needs to upload leads to salesforce how can he upload the data as there are only 10 licenses available?
2
votes
0answers
224 views

upload image from ios app to notes & attachment

I would like to upload image to notes & attachement filed of a custom object via ios app. Tried to upload via apex class but it always upload it to the commom "document folder". struggling for ...
3
votes
1answer
487 views

Community user can not return document

I am creating my own profile page (branding/security reasons) and I ran into an issue where the user is not able to change their profile image. public Document document { get { if (...
0
votes
1answer
65 views

Is Product object available in all Salesforce Editions?

I have created an app having access to some object like Account, Opportunity .... and Product. Now, While creating a Package Product is shown as Package Requirement. So, I am just bother that if any ...
4
votes
2answers
1k views

Unexpected error when uploading package as Managed - Released

I got the following error message when uploading a new patch version of my managed package: An unexpected error occurred when uploading your package. Please contact Salesforce Support and provide ...
1
vote
0answers
45 views

Uploading managed package (test run step) seems much slower after Summer '14 release

I just started an upload of a patch release from a patch org and have the feeling that the speed for test executes significantly degraded after the recent Summer '14 upgrade. Did you experience ...
6
votes
1answer
2k views

How can I use the html (pass through) attributes in Salesforce

I have create a VF page which is accessible on mobile through which I can take pic and attach it to the selected record. For this I have created a input tag in html <input type="file" accept="...
2
votes
1answer
676 views

Upload zip file in static resources

I am making one project in which I send a file on Heroku via HttpRequest (including file in attachment) and I got response zip file now I want to store this zip file in static resources. So how we ...
0
votes
1answer
325 views

I want to upload photo on facebook from apex controller?

I am doing integration salesforce with facebook. I want to upload photo on facebook first i made a visualforce page and apex page and after authentication now i want's to upload photo on facebook i ...
5
votes
0answers
462 views

Display Publisher Actions (Upload file to feed) on Visualforce page in Salesforce1

I have a feed-enabled CustomObject__c which I want to expose via Salesforce1. For some reasons I have an override for the View page that is a used for desktop and mobile devices. On of the use cases ...
1
vote
0answers
454 views

How to upload a Photo on Facebook using Apex?

I used below code for upload photo on Facebook but I got error: {"error":{"message":"(#324) Requires upload file","type":"OAuthException","code":324}} How can I send photo on facebook? public ...
1
vote
0answers
707 views

Upload images to portfolio using Server Side JavaScript

I have a simple html file upload page, an example snippet of the code below. <html> <body> <form action="<ExactTarget page with ssjs file handling>" method="post" ...
0
votes
0answers
121 views

Error came when try to upload a unmanaged package after clicking the “Upload” button. Any suggestions

i got the error when i try to upload a unmanaged package in the final step of package creation process. this is happening in my free developer account. the error screen shot is given below. any ...
4
votes
2answers
229 views

where can I find the most recent version release notes of Salesforce Data Loader

I know I can download the Salesforce Data Loader directly from within Salesforce, however, how can I find out what version it is without downloading and installing it? Also, where can I find the ...
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?
0
votes
2answers
3k views

problem with uploading document .. missing fields

I have a page with uploading document form, I followed this example but I got a problem when I try to upload the file with the following error message Required fields are missing: [Document Name] And ...
5
votes
3answers
8k views

Upload and attach a file to an account or opportunity

So I was wondering how I can attach a file to an account. Basically what we do is sell a product online that requires an agreement. When they buy the product, we generate a pdf of the agreement and ...
1
vote
1answer
119 views

Querying users' fields within a document list to use it in a pageBlockTable

I have this query that retrieves a List in order to fill a table, but I want to retrieve each documents' user or account according to the AuthorId. Here is my query that retrieves the documents and I ...
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....
0
votes
0answers
703 views

Uploading “Media File” binary content via the Apex Data Loader

I have a SalesForce Entity that I'm trying to upload via the Data Loader. So far we've been able to successfully upload all the "meta data" on the object but have been unsuccessful in actually ...
2
votes
1answer
982 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
468 views

Automated Attachment Uploads from local directory

I have a directory on a network drive here inside the firewall that has pdfs on it. I'd like to upload them to salesforce. There are a lot of tools that do this, but I want it automated--as in, when ...
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 ...
6
votes
1answer
2k views

How do I upload a 'Document' sobject using the REST API?

Given a folder ID, I wanted to be able to 'upload' an sObject of type 'Document' from within my code to the salesforce instance for the authenticated user. I was going through the api reference, but,...
0
votes
1answer
178 views

How to copy an attachment from an email to a case record using email service

I'm Using an Email Service to create a custom object record and a case record. The email has an CSV attachment and have to attached to the case record.
1
vote
2answers
944 views

How to Check if a File is Encrypted or not?

I have a requirement to check whether a file is encrypted (using AES) or not before uploading. If not encrypted the upload should not happen and an Error Message should be thrown. How in APEX/Java ...
2
votes
1answer
149 views

How to upload from sandbox to production quickly?

Is it everyone that faces the same issue? I am trying to upload one class and it takes up to half a day. This platform supposedly should be easy to manipulate, but one hour in today and I can't ...
-1
votes
1answer
531 views

Trigger Duplicate CSV

I am trying to upload a CSV file / insert a bulk of records using the import wizard. In short I would like to keep the latest record, in case if duplicates are found. Duplicates record are a ...
2
votes
2answers
4k views

Can users upload PDFs, Word Documents, etc. into Salesforce, possibly through the Text (Rich) field?

I know that by using the text(rich) input field on an sObject, users can upload images if a <apex:textarea ... richText="true"> is available on a VisualForce page. Is there a way to enable users ...
-5
votes
1answer
5k views

Error: Compile Error: Non-void method might not return a value or might have statement after a return statement [closed]

I am trying to upload a data file to salesforce on my custom object. This is similar to gmail upload. Here i have attached the code regarding this but i am getting error. I am getting this error. ...
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 ...
6
votes
2answers
3k views

CSV File Upload into SFDC

I am looking for an approach to perform the below: [1] Read an CSV file from the local drive and insert the contents into SFDC (having a typical Browse button) [2] Once the read is complete upload ...
3
votes
1answer
793 views

Drag & Drop Upload Images to documents - Security Problems

We have developed a Drag & Drop multiple Image Upload with Html5, jQuery and the REST API. We are wondering what are the problems that this feature can bring up in the security review. Let me ...
5
votes
3answers
2k views

Data loader - each batch a discrete operation/transaction?

I am currently designing a solution which will likely include upload (insert/upsert) of 1000s of records per upload. I am doing some calculations to evaluate how far the solution might be from ...
1
vote
2answers
2k views

Can I upsert with the Data Loader using different fields for existing and new records?

I have an object, Financial Account, that exists in Salesforce. The object is updated twice every week from our accounting system so that Salesforce reflects up-to-date balances for the accounts. ...