<form action="" enctype="multipart/form-data">
<input type="text" name="photo" />
<span style="overflow:hidden; width:61; height:20; background-image:url(http://blogimgs.naver.com/imgs/btn_addphoto.gif);">
<input type="file" name="attachedfile" style="width:0;height:20;filter:alpha(opacity=0);" onChange="photo.value=this.value" />
</span>
</form>
[출처 : PHPSCHOOL, 사랑굳 님]<input type="text" name="photo" />
<span style="overflow:hidden; width:61; height:20; background-image:url(http://blogimgs.naver.com/imgs/btn_addphoto.gif);">
<input type="file" name="attachedfile" style="width:0;height:20;filter:alpha(opacity=0);" onChange="photo.value=this.value" />
</span>
</form>
file 객체가 hidden이 아니라서 access denied 같은 게 안 일어난다.