views:

31

answers:

0

Hi, i have uploadify script:

<input type = "text" id = "file_name" name = "file_name" value = "" />
<div class="upload">
    <input id="fileInput2" name="fileInput2" type="file" />
</div>
            <script type="text/javascript">             
            $(document).ready(function(){                       
                    $("#fileInput2").uploadify({
                            'uploader'       : 'scripts/uploadify.swf',
                            'script'         : 'scripts/uploadify.php',
                            'cancelImg'      : 'cancel.png',
                            'folder'         : 'uploads',
                            'multi'          : true,
                            'fileDesc'       : '*.jpg, *.png, *.gif',
                            'fileExt'        : '*.jpg;*.jpeg;*.png;*.gif',
                            'method'         : 'POST',
                            'queueSizeLimit' : 10
                    });
            });
            </script>
<a id = "upload_img" href="javascript:$('#fileInput2').uploadifyUpload();">UPLOAD</a>

I wish change name file where is inser in input field: file_name. How make that? How send input text to uplodify.php file?