uploadify

超大文件上传方案

大城市里の小女人 提交于 2020-01-13 08:45:36
需求:项目要支持大文件上传功能,经过讨论,初步将文件上传大小控制在500M内,因此自己需要在项目中进行文件上传部分的调整和配置,自己将大小都以501M来进行限制。 第一步: 前端修改 由于项目使用的是BJUI前端框架,并没有使用框架本身的文件上传控件,而使用的基于jQuery的Uploadify文件上传组件,在项目使用的jslib项目中找到了BJUI框架集成jQuery Uploadify的部分,这部分代码封装在bjui-all.js文件中, 在bjui-all.js文件中的全局变量定义中有以下部分代码,这就是定义的有关于上传的Uploadify控件的重要变量: upload:{uploadLimit:5,fileSizeLimit:31744,removeTimeout:0.8} 以上三个变量代表的含义是: uploadLimit :表示上传文件个数的限制,5表示文件上传个数限制是5个 fileSizeLimit :表示上传文件大小的限制,31744单位是KB,也就是表示31M removeTimeout :表示移除文件的时间限制 继续查找使用到这些变量的地方,看到了文件大小超出限制等 了解了BJUI前端框架对于上传大文件的限制,可以这样使用,增大文件上传大小和数量,可以按照如下进行修改,我们在bjui-all

Django upload failing on request data read error

限于喜欢 提交于 2020-01-13 05:33:09
问题 I've got a Django app that accepts uploads from jQuery uploadify, a jQ plugin that uses flash to upload files and give a progress bar. Files under about 150k work, but bigger files always fail and almost always at around 192k (that's 3 chunks) completed, sometimes at around 160k. The Exception I get is below. exceptions.IOError request data read error File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 171, in _get_post self._load_post_and_files() File "/usr/lib/python2

java上传大文件解决方案

こ雲淡風輕ζ 提交于 2020-01-13 02:19:07
需求:项目要支持大文件上传功能,经过讨论,初步将文件上传大小控制在10G内,因此自己需要在项目中进行文件上传部分的调整和配置,自己将大小都以10G来进行限制。 第一步: 前端修改 由于项目使用的是BJUI前端框架,并没有使用框架本身的文件上传控件,而使用的基于jQuery的Uploadify文件上传组件,在项目使用的jslib项目中找到了BJUI框架集成jQuery Uploadify的部分,这部分代码封装在up6.js文件中, 在up6.js文件中的全局变量定义中有以下部分代码,这就是定义的有关于上传的Uploadify控件的重要变量: upload:{uploadLimit:5,fileSizeLimit:31744,removeTimeout:0.8} 以上三个变量代表的含义是: uploadLimit :表示上传文件个数的限制,5表示文件上传个数限制是5个 fileSizeLimit :表示上传文件大小的限制,31744单位是KB,也就是表示31M removeTimeout :表示移除文件的时间限制 继续查找使用到这些变量的地方,看到了文件大小超出限制等 了解了BJUI前端框架对于上传大文件的限制,可以这样使用,增大文件上传大小和数量,可以按照如下进行修改,我们在bjui-all.js文件看到uploadLimit属性和fileSizeLimit属性的限制

Uploadify not passing variables, Session problem?

这一生的挚爱 提交于 2020-01-12 10:12:51
问题 For the love of pete I can't get it to accept any variables into to my SQL db. If I put static info it works. I can't seem to pass any paramaters over with scriptdata and it makes it more challenging because I'm using smarty template system on top. I was trying to do this. {literal} <script type="text/javascript"> jQuery(document).ready(function() { jQuery("#fileUpload").uploadify({ 'scriptData' :{'alb_id': '{/literal}$alb_id{literal}','mem_id': '{/literal}$info.mem_id{literal}'}, 'uploader':

Uploadify in ie9 getting js error : SCRIPT5007: Object expected

六眼飞鱼酱① 提交于 2020-01-10 10:07:51
问题 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

通用前端开发框架(一)

◇◆丶佛笑我妖孽 提交于 2020-01-09 04:19:29
前言 最近在几个spa的项目中都使用前后端完全分离,后端只提供数据接口的方式。慢慢总结了一套前端的通用框架。这个框架没有语法限制,没有特别的规则,可接任何语言的后台。一切以快速开发为准则。 技术总览 技术上来说,使用seajs做模块调度。 核心模块有:jquery、jquery-ui、backbone(一个前端MVC框架)、less(一个是css能用变量等编程特性来编写的js库)。 已经包括的可用模块有:contextMenu(jquery右键菜单插件)、bootstrap(来自twitter的通用的css和js库)、uploadify(jquery文件上传插件)、qtip(jquery提示插件)。 后续可能加入:kindeditor(富文本插件)。 文件结构 根目录: core : 存放的是核心的库文件,如jquery。 module : 中存放的是可选的模块和用户自己创建的模块。 index.php : 是示例的页面模板,这个模板可以是任何文件,html或者jsp等都行。如果你的应用中有多个页面,都放在根目录下就行了。 init.js : 你的应用的初始化文件,可以在里面指定模块的别名。可以在里面启动默认的模块。一切初始化的工作都可以放在这里。 sea.js : seajs核心文件,勿动。 示例 :快速构建一个基础的应用 观看本示例时,你需要了解基本的seajs用法。 1

Uploadify - Rename File

早过忘川 提交于 2020-01-07 02:16:09
问题 I'm using uploadify, but I'm not too sure how to edit the php to rename the uploaded files. Basically, a user can upload upto 4 files and they should be named something like 1-img-1, 1-img-2, 1-img-3, 1-img-4 - the first number being a user id (which can be accessed via the POST). Here's the uploadify php script: <?php /* UploadiFive Copyright (c) 2012 Reactive Apps, Ronnie Garcia */ // Set the uplaod directory $uploadDir = '/img/listing_images/'; // Set the allowed file extensions $fileTypes

ASP.net Uploadify Querystring checkbox value

笑着哭i 提交于 2020-01-06 15:59:10
问题 I am using Uploadify with ASP.Net 4.0 and a Generic Handler for the backend. now I could use the scriptData part of Uploadify If I only knew how to read the JSon that is being posted to the Generic Handler so instead I opted for just sending the needed data through querystring which I have tested by hardcoding the query string and it works but when I try to get the value of a checkbox using the val() option it just passes the value of "on" no matter if the check box is or is not checked. I

Uploadify fails to open file browser?

亡梦爱人 提交于 2020-01-06 09:39:08
问题 I have an implementation of uploadify running on top of a PHP application. It was working just fine on my test machine. However, I just uploaded it on to my production machine and it is failing. Uploadify correctly replaces the input field and presents the button. However, when the button is clicked nothing happens. It completely fails to open the file browser. No error. Just quiet fail. Any ideas what could be going wrong here? Something in the php.ini? A mod I haven't downloaded? I'm at a

How to save a file path at database?

断了今生、忘了曾经 提交于 2020-01-05 07:31:11
问题 i'm doing a music upload to my application, using the uploadify plugin, the upload are working, but, when i'll save the path reference (where the music are saved on my project), i'm getting null value, anyone knows how can I do this? Upload Method at MusicController public ActionResult Upload() { var file = Request.Files["Filedata"]; string savePath = Server.MapPath(@"~\mp3\" + file.FileName); file.SaveAs(savePath); return Content(Url.Content(@"~\mp3\" + file.FileName)); } Create Method at