You need to sign in to do that
Don't have an account?
Nupur Modi
View state issue with apex:inputfile and required field validation
I have an input file on a VF page. And there is a required field as well. The problem is that if someone uploads a file and doesn't enter the required field and clicks on Save, I am getting the "Max View State" error. Because the file goes into the view state and SF internally throws an error.
Does anyone have a solution to this issue?
Thanks in advance
Nupur Modi
Does anyone have a solution to this issue?
Thanks in advance
Nupur Modi
Please refer to this post:
http://salesforce.stackexchange.com/questions/28368/uploading-file-via-visualforce-page-error-maximum-view-state-size-limit-135kb
Also you can refer to the best practices:
https://help.salesforce.com/apex/HTViewSolution?id=000126956&language=en_US
Thanks,
Pratik
Nupur Modi