jQuery UI Widgets › Forums › Editors › FileUpload › FileUpload chrome
Tagged: file upload widget, jqwidgets file upload
This topic contains 2 replies, has 2 voices, and was last updated by rafaudeo1 9 years, 8 months ago.
-
AuthorFileUpload chrome Posts
-
chrome version 40.0.2214.111
<%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”Default.aspx.cs” Inherits=”_Default” %>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head runat=”server”>
<link href=”jqwidgets/styles/jqx.base.css” rel=”stylesheet” type=”text/css” />
<script src=”Script/jquery-2.0.3.js” type=”text/javascript”></script>
<script src=”jqwidgets/jqxcore.js” type=”text/javascript”></script>
<script src=”jqwidgets/jqxbuttons.js” type=”text/javascript”></script>
<script src=”jqwidgets/jqxfileupload.js” type=”text/javascript”></script>
<script type=”text/javascript”>
$(document).ready(function () {
$(‘#jqxFileUpload’).jqxFileUpload({ width: 300, uploadUrl: ‘upload.aspx’, fileInputName: ‘fileToUpload’ });
$(‘#jqxFileUpload’).on(‘select’, function (event) {
$(‘#jqxFileUpload’).jqxFileUpload(‘uploadAll’);
});
$(‘#jqxFileUpload’).on(‘uploadEnd’, function (event) {
var args = event.args;
var fileName = args.file;
var serverResponce = args.response;
if (args.response.substr(0, 5) == ‘Exito’)
alert(‘Avise ok’);
else
alert(‘Avise error’);
});
});
</script>
<title></title>
</head>
<body>
<form id=”form1″ runat=”server”>
<div>
<div id=”jqxFileUpload”>
</div>
</div>
</form>
</body>
</html>never sends ‘Avise *’! but IE 11.0.9600.17420 works fine
Hi rafaudeo1,
jqxFileUpload makes a Form submit. How you handle that submit on your server depends on your server’s code. I see you use the “uploadAll” method. The method is demonstrated on this page: http://jsfiddle.net/jqwidgets/3u0rmp8w/. The widget correctly makes the Server call. The server implementation of the upload process is not a subject of jqxFileUpload.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/problem solved.
only remove <form ></form> tags
thanks for help Peter Stoev -
AuthorPosts
You must be logged in to reply to this topic.