uploadify

Getting Uploadify to work with asp.net-mvc

守給你的承諾、 提交于 2019-11-30 09:15:42
I am trying to get Uploadify to work with my site but I am getting a generic "HTTP Error" even before the file is sent to the server (I say this because Fiddler does not show any post request to my controller. I can browse correctly for the file to upload. The queue is correctly populated with the file to upload but when I hit on the submit button the element in the queue get a red color and say HTTP Error. Anyway this is my partial code: <% using ( Html.BeginForm( "Upload", "Document", FormMethod.Post, new { enctype = "multipart/form-data" } ) ) { %> <link type="text/css" rel="Stylesheet"

Uploadify in ie9 getting js error : SCRIPT5007: Object expected

放肆的年华 提交于 2019-11-30 06:40:00
I am trying to bind uploadify on div. When I clicked on upload button it show me error like SCRIPT5007: Object expected. For demo check below link which produced error on dragging of div in ie9 head <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.js"></script> <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.20/jquery-ui.js"></script> <script type="text/javascript" src="http://www.uploadify.com/wp-content/themes/uploadify/js/jquery.uploadify.min.js"></script> body <div class="container" id="container"> <div id="uploadify-item"></div> This

Uploadify and Image Compression

妖精的绣舞 提交于 2019-11-30 00:37:24
问题 I am using Uploadify on one of my client's web sites to allow them to upload a large amount of pictures at once to their photo gallery. I am seeing issues lately. They seem to upload large photographs (3 MB and above). I am wondering, is it possible to compress (reduce their size) on the client side, instead of doing it on the server (just like facebook does it). I know I could easily do it on the server, but I am working on another project right now, where I am expecting a large flow of

How to read maxAllowedContentLength

杀马特。学长 韩版系。学妹 提交于 2019-11-29 14:47:18
For my web app i have flash component for uploading files. I would like to handle max file size limit on client side without actual sending that file to server. So i need to read that value from config file somehow to send it to client. Some articles i had found said that reading directly config file is not solution, because it can be changed in whole lot of places. So there should be some API call probably, but i cannot find any... <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="1048576" /> </requestFiltering> </security> </system.webServer>

Getting Uploadify to work with asp.net-mvc

时间秒杀一切 提交于 2019-11-29 14:08:10
问题 I am trying to get Uploadify to work with my site but I am getting a generic "HTTP Error" even before the file is sent to the server (I say this because Fiddler does not show any post request to my controller. I can browse correctly for the file to upload. The queue is correctly populated with the file to upload but when I hit on the submit button the element in the queue get a red color and say HTTP Error. Anyway this is my partial code: <% using ( Html.BeginForm( "Upload", "Document",

Uploadify 上传插件

荒凉一梦 提交于 2019-11-29 12:36:25
   //头像上传 Uploadify 插件 $('上传文件的Input对象').uploadify({ swf : PUBLIC + '/Uploadify/uploadify.swf', //引入Uploadify核心Flash文件 uploader : 'test.php', //PHP处理脚本地址 width : 120, //上传按钮宽度 height : 30, //上传按钮高度 buttonImage : PUBLIC + '/Uploadify/browse-btn.png', //上传按钮背景图地址 fileTypeDesc : 'Image File', //选择文件提示文字 fileTypeExts : '*.jpeg; *.jpg; *.png; *.gif', //允许选择的文件类型 formData : {'session_id' : sid}, //上传成功后的回调函数 onUploadSuccess : function (file, data, response) { //file 是上传的文件名 //data 是返回值 } }); 中文帮助文档 来源: http://www.cnblogs.com/tlijian/p/3580363.html

sae storage 使用uploadify插件进行文件批量上传

杀马特。学长 韩版系。学妹 提交于 2019-11-29 12:36:15
uploadify插件在文件上传方面还是很不错的,这不我需要往sae 的storage上上传文件,就用了它。 下面我就分享一下如何实现的吧。 我们先到官网下载最新的uploadify最新的插件包。 在页面中引用以下必须js/css文件,注意uploadify是基于Jquery的所以必须在之前引用一下Jquery包。 <link rel='stylesheet' href='../script/uploadify/uploadify.css?v=2' type='text/css' /> <script type="text/javascript" src="../script/uploadify/jquery.min.js"></script> <script type="text/javascript" src="../script/uploadify/jquery.uploadify.min.js"></script> 页面中定义上传的容器 <div id="file_upload"></div> 然后创建上传插件 $('#file_upload').uploadify({ 'onSelect' : function(file){ }, 'formData': { 'token':'<?php echo $token; ?>', //token 'userid':'<?php

jquery上传插件(uploadify)的使用

假装没事ソ 提交于 2019-11-29 12:36:05
已经很久没写博客了。今天乘着有时间,写一下,回味一下!不废话了。let's go 作为jquery的粉丝,jquery提供的插件很多,今天就介绍一个。 新建web项目:UpdisFile 添加UploadFile文件夹,然后再UploadFile文件夹下面添加子文件夹Upload,作为上传的文件夹使用 添加完后就可以导入需要的jquery上传插件 在default页面中加入所需要的脚本,这里需要引入的脚本和样式文件要仔细点 这个就是需要引入的脚本,请大家引入的时候仔细点啊。 下面的工作就是编写jquery的加载脚本了 <script type="text/javascript"> $(document).ready(function () { $("#uploadify").uploadify({ 'uploader': 'UploadImg/uploadify.swf',// uploadify.swf 文件的相对路径,该swf文件是一个带有文字BROWSE的按钮,点击后淡出打开文件对话框,默认值:uploadify.swf 'script': 'UploadImg/ajax/UploadHandler.ashx',//处理上传的一般处理程序 'cancelImg': 'UploadImg/cancel.png',//取消的图片文件夹位置 'folder':

uploadify文件批量上传

亡梦爱人 提交于 2019-11-29 12:34:53
uploadify能够时间文件的批量上传, JS文件包下载地址 ,使用说明可以 参考官网文档 (http://www.uploadify.com/documentation/) 使用方法如下代码: $("#btnfileupload").uploadify({ swf: '/Content/uploadify/uploadify.swf', cancelImg: '/Content/uploadify/cancel.png', uploader: '../upload/Uploadfile', width: 200, buttonText: '批量上传', fileTypeExts: '*.jpg;*.gif;*.jpeg;*.png;', formData: { 'filepath': 'ttrs' }, fileObjName: 'upimage', auto: true, multi: true, uploadLimit: 10, successTimeout: 30, removeCompleted: true, removeTimeout: 3, onUploadSuccess: function (file, data, response) { $("#mydefault").hide(); data = window.eval('(' + data + ')');/

How can I get the uploaded file details from uploadify after completion

*爱你&永不变心* 提交于 2019-11-29 12:10:56
How should I retrieve the uploaded file details from uploadify after the completion of the upload process. I want to do a process in the uploaded file. But when I use the uploadify it simply uploads the file to a location through the uploadify.php which I customized. I want this uploadify process to redirect to a page after completed with the details of the file such as filename and the targeted location where I will proceed with my second operation on the file uploaded Updates This is what my code as of now <style type="text/css"> body { font: 0.8em/1.6em Arial, Helvetica, sans-serif; }