javascript - safari and fileupload form doesnt work -
i'm trying add attachment upload typo3 extension, , since normal file-input doesn't work design. decided add text-input, display value, , button-input, fire file-inputs click event. works ff , ie without problems, when try on safari file-inputs click event doesn't work (others do!!!).
<form action="" name="attachmentpostform" method="post" onsubmit="createattachmentpostaction(${uid});" enctype="multipart/form-data" target="attachementupload_target"> <input type=file name="leadimagefile" accept="image/gif,image/jpeg" onchange="document.getelementbyid('imagefakefile').value = this.value" id=imagetruefile style="display:none"> <input type=text id=imagefakefile readonly> <input type = button value="browse" onclick="document.getelementbyid('imagetruefile').click()"> <input type="submit" value="upload" /> </form>
is there way achieve effect, or have use "normal" file-input on case?
it's doesn't work because input has style="display:none", change visibility: hidden , work. recommend check https://stackoverflow.com/a/3030174/967358
Comments
Post a Comment