This is what i am trying to acchomplish, i have created an iframe, within my iframe i have input a src to a PHP file. when the php file opens up within the iframe it has a choose file input dialog. I have created a button seperate from the iframe in which i would like to use to open up input dialog. here is example below:
<iframe name="iframe001"id="iframe001" src="%%%myvalue1%%%" width="480px" height="500px"scrolling="no" ></iframe>
here is the php file(Form portion) that i open
<form action="NewResizeUpload.php" method="post" enctype="multipart/form-data">
<img src="" id="image">
<input type="file" input id="input" name="image" onchange="handleFiles()" />
<button>Upload</button>
The question is how do i call for the open choose file dialog this is what i am currently using but does not work when i load php file into iframe
function ChooseFile(){
document.getElementById('input').click();