swfupload

解决 KindEditor SWFUpload 批量上传检测用户登录状态的问题

依然范特西╮ 提交于 2019-12-01 00:48:12
使用KindEditor时遇到个小问题,在给 【爱玩电脑】 开发 用户发表文章 的功能时,KindEditor 批量上传图片失败。 经过百度搜索发现是 #SWFUpload# 无法读取cookie的原因,既然问题找到了就想办法解决呗。又经过一番百度搜索,找到#KindEditor#官方的解决方法 http://www.kindsoft.net/docs/option.html#extrafileuploadparams 我的解决方法: var editor; var editorSets = { themeType: 'default', urlType: 'absolute', cssPath: '/static/editor/iframe.css', uploadJson: '/article/add/upload/', allowImageUpload: true, allowFlashUpload: true, allowMediaUpload: true, allowFileUpload: true, allowFileManager: true, fileManagerJson: '/article/add/fileManager/', formatUploadUrl: true, fillDescAfterUploadImage: true, syncType:

swfupload not working under IE anymore

前提是你 提交于 2019-11-30 19:29:34
http://demo.swfupload.org/v250beta2/simpledemo/index.php doesn't seem to work in IE any more. Is there a fix for this? I get a red cross instead and the 'button' is not clickable. I'm running IE 8. I could reproduce the problem with IE9 running on Windows 7, but only on virtual machines. Anyway, I was able to apply a quick'n'dirty to fix the problem by patching swfupload.js (v2.2.0), somewhere around line 230, thanks to this post . SWFUpload.prototype.getFlashHTML = function () { // Flash Satay object syntax: http://www.alistapart.com/articles/flashsatay // ADD THESE LINES --> var iefix = '';

Code samples for Django + SWFUpload?

℡╲_俬逩灬. 提交于 2019-11-29 23:23:57
Does anyone have any simple code samples for Django + SWFUpload ? I have it working perfectly in my PHP application but Django is giving me headaches. obeattie Unfortunately I can't give you any very detailed code samples, but I have quite a bit of experience with working with SWFUpload + Django (for a photo sharing site I work on). Anyway, here are a few pointers that will hopefully help you on your quest for DjSWF happiness :) You'll want to use the cookies plugin (if of course you are using some sort of session-based authentication [like django.contrib.auth , and care who uploaded what).

WEB版一次选择多个文件进行批量上传(swfupload)的解决方案

橙三吉。 提交于 2019-11-29 12:38:29
说明:功能完全支持ie和firefox浏览器! 一般的WEB方式文件上传只能使用FileUpload控件进行一个文件一个文件的进行上传,就算是批量上传,也要把文件一个一个的添加到页面,无法如windows程序一样,一次选择多个文件进行批量上传。这样在某些应用上就显得很不人性化,有时候客户希望能够一次选择很多文件,然后让系统把选择的文件全部上传。 这里,就将针对这个问题提出一个比较完美的解决方案,利用的SwfUpload组件,让客户一次选择多个文件,然后将选择的文件上传到服务器上。 关于SWFUpload的一些说明: 1) SWFUpload使用一个隐藏的Flash影片来控制文件的选择和上传。 2) JavaScript用来激活文件选择对话框。此文件选择对话框是可以设置允许用户选择一个单独的文件或者是多个文件。 选择的的文件类型也是可以被限制的,因此用户只能选择指定的适当的文件,例如*.jgp;*.gif。 3) 当选定文件以后,每个文件都会被验证和处理。当Flash上传文件的时候,由开发人员预定义的Javascript事件会被定时触发以便来更新页面中的UI,同时还提供上传状态和错误信息。 4) 选定的文件的上传和它所在页面、表单是独立的。每个文件都是单独上传的,这就保证了服务端脚本能够在一个时间点更容易地处理单个文件。虽然Flash提供了上传服务,但是页面并不会提交或者重新载入

Is there any memory restrictions on an ASP.Net application?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 12:14:42
I have an ASP.Net MVC application that allows users to upload images. When I try to upload a really large file (400MB) I get an error. I assumed that my image processing code (home brew) was very inefficient, so I decided I would try using a third party library to handle the image processing parts. Because I'm using TDD, I wanted to first write a test that fails. But when I test the controller action with the same large file it is able to do all the image processing without any trouble. The error I get is "Out of memory". I'm sure my code is probably using a lot more memory than it needs to

Code samples for Django + SWFUpload?

Deadly 提交于 2019-11-28 20:41:33
问题 Does anyone have any simple code samples for Django + SWFUpload? I have it working perfectly in my PHP application but Django is giving me headaches. 回答1: Unfortunately I can't give you any very detailed code samples, but I have quite a bit of experience with working with SWFUpload + Django (for a photo sharing site I work on). Anyway, here are a few pointers that will hopefully help you on your quest for DjSWF happiness :) You'll want to use the cookies plugin (if of course you are using

Large File uploading to asp.net MVC

半城伤御伤魂 提交于 2019-11-28 16:07:18
I need a way to upload large files (600 mb to 4 gb) in an asp.net mvc website. Currently I am using swfupload ; it works well enough, but it is a huge hit on the webserver because it sends it in one big upload, plus I have to set it in the web.config to allow that huge of a file, which is a huge security risk. In the past when I was doing web forms development I used Neatupload which breaks up the file into chunks and uploads them individually. I am looking for a way to upload large files in mvc that uploads via chunking it up. Any ideas on how I could do this? Silverlight File Upload Solmead

SWFUpload works in IE, but not in Firefox

六月ゝ 毕业季﹏ 提交于 2019-11-28 10:25:29
Using SWFUpload v2.2, Firefox 3, IE 8, Flash 10 In my ASP.NET application all uploads are being processed by upload.aspx (I have the correct upload_url set in the settings object). In IE 8 the uploads hit the upload.aspx page and are processed, but in Firefox they do not. Any suggestions? Most of the code for the page that the user visits to upload a file is shown here (note: master pages are being used): <script type="text/javascript" src="../swfupload/swfupload.js"></script> <script type="text/javascript" src="../js/handlers.js"></script> <script type="text/javascript"> var swfu; window

Detect MIME type of uploaded file in Ruby

試著忘記壹切 提交于 2019-11-27 11:06:51
Is there a bullet proof way to detect MIME type of uploaded file in Ruby or Ruby on Rails? I'm uploading JPEGs and PNGs using SWFupload and content_type is always "application/octet-stream" Wayne Conrad The ruby-filemagic gem will do it: require 'filemagic' puts FileMagic.new(FileMagic::MAGIC_MIME).file(__FILE__) # => text/x-ruby; charset=us-ascii This gem does not look at the file extension at all. It reads a bit of the file contents and uses that to guess the file's type. In Ruby on Rails you can do: MIME::Types.type_for("filename.gif").first.content_type # => "image/gif" You can use this

Large File uploading to asp.net MVC

随声附和 提交于 2019-11-27 09:33:17
问题 I need a way to upload large files (600 mb to 4 gb) in an asp.net mvc website. Currently I am using swfupload; it works well enough, but it is a huge hit on the webserver because it sends it in one big upload, plus I have to set it in the web.config to allow that huge of a file, which is a huge security risk. In the past when I was doing web forms development I used Neatupload which breaks up the file into chunks and uploads them individually. I am looking for a way to upload large files in