Добрый день. Е�ть така� задача - пользователь может выбрать один или не�колько файлов, и по нажатию кнопки загрузить их на �ервер.
Я попытал�� решить задачу � помощью
jQuery Multiple File Upload Plugin и
jQuery Form Plugin.
Вот что получило�ь:
|
Код:
|
<html>
<head>
<script src='http://jquery-multifile-plugin.googlecode.com/svn/trunk/jquery.js' type="text/javascript"></script>
<script src='http://jquery-multifile-plugin.googlecode.com/svn/trunk/jquery.form.js' type="text/javascript" language="javascript"></script>
<script src='http://jquery-multifile-plugin.googlecode.com/svn/trunk/jquery.MultiFile.js' type="text/javascript" language="javascript"></script>
</head>
<body>
<form id="myForm" action="http://localhost/BlackWater.Web/UploadHandler.ashx" method="POST" enctype="multipart/form-data">
<input id="multiInput" type="file" class="multi" maxlength="3"/>
<input type="submit" value="Submit" />
</form>
</body>
</html> |
UploadHandler.ashx - хендлер, напи�анный на ASP.NET.
Е�ли запу�кать под IE - то в�е работает, в Request.Files �одержать�� выбранные файлы.
� под chrome и firefox коллекци� Files пу�та�...
Что делать, куда копать ?