The Diary of Aska

jQuery-File-Uploadを試用

とりあえず最低限これだけあれば動く、callbackでリロードとか色々仕込めばWebファイラーになる筈なので仕込み中。

js

$('#file_upload').fileUpload();

html

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery.fileupload.js"></script>
<form id="file_upload" action="upload" method="POST" enctype="multipart/form-data">
    <input id="hidden_path" type="hidden" name="path" value="">
    <input type="file" name="file[]" multiple>
    <button>upload</button>
    <div class="file_upload_label">Drop Here</div>
</form>