uploadify

csharp文件分片上传,断点续传

蹲街弑〆低调 提交于 2020-02-26 07:43:11
需求:项目要支持大文件上传功能,经过讨论,初步将文件上传大小控制在500M内,因此自己需要在项目中进行文件上传部分的调整和配置,自己将大小都以501M来进行限制。 第一步: 前端修改 由于项目使用的是BJUI前端框架,并没有使用框架本身的文件上传控件,而使用的基于jQuery的Uploadify文件上传组件,在项目使用的jslib项目中找到了BJUI框架集成jQuery Uploadify的部分,这部分代码封装在bjui-all.js文件中, 在bjui-all.js文件中的全局变量定义中有以下部分代码,这就是定义的有关于上传的Uploadify控件的重要变量: //文件上传对象 function FileUploader(fileLoc, mgr) { var _this = this; this.id = fileLoc.id; this.ui = { msg: null, process: null, percent: null, btn: { del: null, cancel: null,post:null,stop:null }, div: null}; this.isFolder = false; //不是文件夹 this.app = mgr.app; this.Manager = mgr; //上传管理器指针 this.event = mgr.event; this

SpringMVC文件分片上传,断点续传

你离开我真会死。 提交于 2020-02-26 05:36:16
需求:项目要支持大文件上传功能,经过讨论,初步将文件上传大小控制在500M内,因此自己需要在项目中进行文件上传部分的调整和配置,自己将大小都以501M来进行限制。 第一步: 前端修改 由于项目使用的是BJUI前端框架,并没有使用框架本身的文件上传控件,而使用的基于jQuery的Uploadify文件上传组件,在项目使用的jslib项目中找到了BJUI框架集成jQuery Uploadify的部分,这部分代码封装在bjui-all.js文件中, 在bjui-all.js文件中的全局变量定义中有以下部分代码,这就是定义的有关于上传的Uploadify控件的重要变量: //文件上传对象 function FileUploader(fileLoc, mgr) { var _this = this; this.id = fileLoc.id; this.ui = { msg: null, process: null, percent: null, btn: { del: null, cancel: null,post:null,stop:null }, div: null}; this.isFolder = false; //不是文件夹 this.app = mgr.app; this.Manager = mgr; //上传管理器指针 this.event = mgr.event; this

MVC应用程序实现上传文件

爱⌒轻易说出口 提交于 2020-02-24 18:13:51
学习MVC以来,一直想实现上传文件的功能,使用jQuery来实现上传,有很多插件。此篇演示中,Insus.NET是使用Uploadify。 http://www.uploadify.com/ ,它有更多的文件说明,可以参考: http://www.uploadify.com/documentation/ 。 你可以使用MVC的NuGet Packages管理器,来安装这个jQuery的插件: 安装好之后,可以在MVC应用程序的Scripts目录看到它: 在HomeContollers中,创建一个ActionResult和一个ContentResult action,前者是为MVC创建一个视图,而后者是处理文件上传。 演示中,Insus.NET是把上传的文件存储于MVC应用程序中的Temp目录下,当然你是可以在你指定的目录,或是存储于数据库中。 #1~#3是在视图的Head节点中,引用jQuery,Uploadify的js库与样式。 #4是上传的html标签。 而#5的,可以参考下面详细的jQuery代码: 算完成了,最后是看看实时演示效果: 来源: https://www.cnblogs.com/insus/p/3590907.html

jquery.uploadify使用列子

只愿长相守 提交于 2020-02-16 05:01:05
众所周知uploadify是一款非常不错的jquery上传插件,不仅可以一次性上传多个附件,同时也可以限制上传文件的格式,以免用户上传错误的文件格式。 所以这款插件在我的系统中都有运用到。现在也分享给大家(第一次写博文,文采不好,请见谅!) 不多说,上代码 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="jqUploadify_Default2" %> <!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 id="Head1" runat="server"> <title>无标题页</title> <link href="scripts/uploadify.css" rel="stylesheet" type="text/css" /> <link href="scripts/default.css" rel="stylesheet" type="text/css" />

jQuery上传插件Uploadify 3.2使用

戏子无情 提交于 2020-02-16 04:59:38
Uploadify下载地址: http://www.uploadify.com/download/ 这里下载最新版的3.2的。 下载下来解压后估计里面很多文件,其实有用的也就一个jquery.uploadify.js和uploadify.swf这两个文件。当然啦,jQuery库那是必须的。 在你使用的项目中,把 jquery.uploadify.js引入以后,用法和大多数JQ插件一样。同时也要记得引入swfobject.js这个插件,版本2.2以上的。使用方法例如: 1 2 3 4 5 6 7 8 $( function () { $( "#file_upload_1" ).uploadify({ height : 30, swf : '/uploadify/uploadify.swf' , uploader : '/uploadify/uploadify.php' , width : 120 }); }); file_upload_1其实也就是一个容器ID,比如<div id="file_upload_1"></div>,上面的只是简单的事例,下面我就把我在项目中做的发出来,每个都有解释: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

uploadify上传文件

帅比萌擦擦* 提交于 2020-01-20 03:17:49
页面部分: <%@ page language= "java" contentType= "text/html; charset=UTF-8" pageEncoding= "UTF-8" %> <%@include file= "/common/taglibs.jsp" %> <%@ page import= "com.cattsoft.baseplatform.func.sm.entity.SysUser" %> <html> <head> <title>文件管理页面</title> <link type= "text/css" rel= "stylesheet" href= " <%=baseurl%> js/uploadify/uploadify.css" /> <script type= "text/javascript" src= " <%=baseurl%> js/uploadify/jquery.uploadify.min.js" ></script> <script type= "text/javascript" src= " <%=baseurl%> js/json2.js" ></script> <script type= "text/javascript" src= " <%=baseurl %> js_model/sm/file.js" ></script>

Uploadify使用说明

时光毁灭记忆、已成空白 提交于 2020-01-19 20:04:32
Uploadify 使用说明 什么是 Uploadify 原文: Uploadify is a jQuery plugin that integrates a fully-customizable multiple file upload utility on your website. It uses a mixture of Javascript, ActionScript, and any server-side language to dynamically create an instance over any DOM element on a page. 译文: Uploadify 是一个 jQuery 插件,集成了一个完全可定制的多个文件上传您的网站上的效用。它混合使用的 Javascript , ActionScript ,和任何服务器端语言来动态创建的任何一个页面上的 DOM 元素的一个实例。 原文 : Uploadify was born out of the need for a multiple file upload utility for a CMS that was being developed. After evaluating the other available options, RonnieSan decided the best

Uploadify的用法

ⅰ亾dé卋堺 提交于 2020-01-19 19:49:03
从Uploadify 的下载页面上,可以看到当前的版本已经是 Uploadify-v3.0.0 (Beta) ,但是还是一个Beta版,所以目前来说网站上的文档主要是针对 uploadify v2.14 的。所以这里就不多介绍老版本的文档了,主要说一下Uploadify3.0 的一些用法。 Uploadify 的v3.0 和老版本还是有很大的差别的,虽然从演示上来看基本上一样,但是jquery调用uploadify的时候,一些很重要的参数名字都变了。在演示上的差 别,老版本是把按钮的样式放在flash里,而v3.0把按钮的样式和flash 分开了,定义起来更加自由。 下面来说一下v3.0 的使用方法和有哪些参数上变化: 使用方法: <html> <head> <link href="/uploadify/uploadify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="/uploadify/jquery-1.5.1.js"></script> <script type="text/javascript" src="/uploadify/swfobject.js"></script> <script type="text/javascript" src="/uploadify

uploadify error HTTP: undefined? [duplicate]

╄→гoц情女王★ 提交于 2020-01-16 07:31:09
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Uploadify: show error message from HTTP response I am trying to get Uploadify to work in my asp.net mvc 3 app. I am getting an error( see title). This is my view: @{ ViewBag.Title = "Home Page"; } <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.3.2.min.js")"></script> <script type="text/javascript" src="@Url.Content("~/Scripts/swfobject.js")"></script> <script type="text/javascript" src="

How do I get a session by SessionID in C#

佐手、 提交于 2020-01-16 05:12:05
问题 I'm working on an ASP.NET MVC app and I'm trying to use the 'Uploadify' JQuery plugin. One issue I'm running into is that there is apparently a well known bug in regards to sending up cookie information with Flash (which uploadify utilizes). So I've tried sending the auth token and the session id with my request when uploading a file using uploadify. This is great in that I can figure out if someone is authorized, but I can't seem to get the session and thus do not have access to session