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="image/*" capture="camera" id="photo" name="photo" filename="{!fileName}" value="{!photoUpload}"/>
By using this code I am able to access my mobile cam but not able to sent the filename value to the controller for attachment but when I use Visualforce:
<apex:inputFile accept="txt" filename="{!fileName}" contentType="{!contentType}" value="{!photoUpload}" />
I am not able to use the capture="camera"
attribute but able to attach the image to the record.
How can I use the capture="camera"
in apex:inputFile
or is there any way to pass the value of the selected file to the controller from <input type="">
?