function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Input File component is not working ..

I am using inputfile component in VF page to upload file bt its working  and giving me error like :


 apex:inputFile can not be used in conjunction with an action component, apex:commandButton or apex:commandLink that specifies a rerender or oncomplete attribute.



I am using Rerender attribute in VF page ..If I removes that it works fine .


Please provide me some input ..

Ron HessRon Hess

the input component requires a full page refresh, so you can't use rerendered or oncomplete, thus the message.




Thanks Ron for your reply...


 What would be the best approch to acomplish this functionality.




You can keep the inputFile component in a seperate form and then render that on-demand using DIV Tags or outputPanel.


Then it would work without a PageRefresh as well. Worked for me!!




can you show the solution example for this kind of problem.......


please help me i am newbie in salesforce......


any kind of help will be greatly appriciated.......





Vishal, were you able to make this work? We are having the same problem.


My issue was to show a loading mask.


But, i have solved it out by some javascript.