2

I am getting the following error while trying to upload an excel file. What would be the best way of reducing the size of request?

https://help.salesforce.com/HTViewSolution?id=000193799&language=en_US

enter image description here

  • 2
    You need to break the files into chunk then you can pass that – Tushar Sharma Sep 23 '16 at 9:16
2

You can use action function instead of visualforce remotting.

Example:

Page:

<apex:actionfunction name="js_functionName" action="{!apexMethod}" >
<apex:param name="apexvariableName" value="" assignTo="{!apexvariableName}"/>

Java-Script:

js_functionName(longInputs);

Controller:

public string apexvariableName{get;set;}

public void apexMethod(){

   //Input parameter can be accessed using apexvariableName variable
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.