swfupload

SWFUpload startUpload() fails if not called within the file_dialog_complete_handler

六眼飞鱼酱① 提交于 2019-12-07 03:06:02
问题 I am trying to get SWFUpload to properly upload an image to my server, along with other post data that must come with the image. There is a form to fill up the data so after the user clicks the browse button and selects his image file, the image is not uploaded right away. It is kept in the queue until the user clicks a send button, I then call mySwfUploadInstance.startUpload() so that the upload starts. But it fails miserably at line 452 of swfupload.js in the function 'callFlash': Uncaught

403 Forbidden error on swfupload and django

爷,独闯天下 提交于 2019-12-07 00:42:25
I'm trying to use a script for multiple file uploads, like swfupload or uploadify on my django application but no matter what I try, I always get a 403 forbidden error for the upload URL. If I try to run the 'same' code (just different links to same files) independently, it works like a charm. Any idea if I'm missing something on my main code or is there some kind of setting that I don't know about? This is totally related with CSRF protection . In my case I solved that issue such that, views.py def photo_upload(request): if request.method == 'POST': for field_name in request.FILES: .... ....

Integrating Flash File Upload with JSF

杀马特。学长 韩版系。学妹 提交于 2019-12-06 06:09:45
问题 I have seen that we can upload multiple files by flash file upload. Like SWFUpload or YUI Uploader. Is it possible to integrate these upload component with JSF? What I want is to choose multiple file at once. Primefaces file uploader has this feature, but that don't work in IE7 as IE7 don't have any support for HTML5. I need to create a Form with various fields, like dropdown menu, text input etc and also need to add a file uploader for choosing multiple file. When the JSF submit button will

SWFUpload and Java: Session is lost

拈花ヽ惹草 提交于 2019-12-06 04:19:16
I am using SWFUpload to upload files to java servlet (spring framework). The problem is that the current web session is lost during file upload (it creates a new session). I read that it is a known bug and there are some workarounds somewhere but I can't find anything. Does anyone know how to make it work? Thanks. Have a look at this post on the SWFUpload forums. Adding ;jsessionid=XXX to the upload URL may work for you, or it may not; the exact cause of the problem appears unclear. Note that Flash uses the Wininet stack (same as IE), so if you are using a different browser you need to somehow

Execute Javascript inside a partial view in ASP.NET MVC

99封情书 提交于 2019-12-05 10:40:36
I use this JavaScript code inside the head tag in order to populate the divs with a browse button so that users can upload images (swfupload). <head> ... <script type="text/javascript"> var swfu = function() { return new SWFUpload({ // Backend Settings // settings go here... // Too long to display here // Debug Settings debug: false }); } window.onload = swfu; </script> </head> .... <div id="swfu_container" style="margin: 0px 10px;"> <div> <span id="spanButtonPlaceholder"></span> </div> <div id="divFileProgressContainer" style="height: 75px;"></div> <div id="thumbnails"></div> </div> This

SWFUpload on HTTPS not working

拥有回忆 提交于 2019-12-05 08:19:18
I have trouble uploading files with SWFUpload when target servlet is listening on HTTPS. On HTTP it works fine. The issue is only when using FireFox or Opera. On IE it works fine - not tried other browsers. EDIT: Error message as provided from SWFUpload when in debug mode: SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0 SWF DEBUG: Event: uploadError : IO Error : File ID: SWFUpload_0_0. IO Error: Error #2038 SWF DEBUG: Event: uploadComplete : Upload cycle complete. Possibly a certificate related issue. Check if there are any certificate related warnings when you open the target

客户端上传工具-SWFUpload

寵の児 提交于 2019-12-05 04:12:17
最近,在后台实现广告管理系统,有一个表单选项,想利用SWFUpload组件来实现。现在将该组件的认识和理解记录如下:方便有需要的同行查看. 一、首先来比较下目前的几种的客户端上传: 1、File表单 使用标准的HTML元素提供的File表单是最原始、传统的上传方式,他的优势在于浏览器的广泛兼容性,除了服务端需要处理Files信息以外,不需要额外的处理程序即可完成文件上传。 但使用File表单上传文件会造成页面的刷新,尤其是在上传大文件的时候,在文件上传过程中,用户需要傻等在一个空白页面前,没有任何反馈信息来提示用户当前的上传进度。同时无法在客户端对文件大小做检测。 2、IFrame结合File表单 使 用一个含有file表单的iframe来完成文件上传,能够避免文件上传过程中的页面刷新,在一定程度上改进了用户体验,但同样没有解决大文件上 传时候缺少反馈信息的问题。相比File表单上传,此方式还需要对程序做额外的处理,同时需要JS的支持,复杂度稍微增加了一些。 3、IFrame、File表单结合AJAX 在方式2的基础上引入AJAX来实时跟服务端脚本获取当前的上传进度,实现了页面无刷新、实时更新上传进度的功能。但程序的复杂度又增加了一个级别,由于要不断跟服务端发送请求,同时也增加了服务端的压力。 4、Activex控件 使用控件方式完成的上传在功能和效率上都很不错,页面无刷新

Using Rails with Paperclip and SWFUpload

流过昼夜 提交于 2019-12-04 23:13:33
问题 I have a basic rails application test with a user model that has a photo field handled with paperclip. I created the views to be able to create/edit an user and the photo uploading is working nicely. <h1>Editing user</h1> <% form_for :user, @user, :url => user_path(@user), :html => { :method => "put", :multipart => true } do |f| %> <%= f.error_messages %> <p> <%= f.label :first_name %><br /> <%= f.text_field :first_name %> </p> <p> <%= f.label :last_name %><br /> <%= f.text_field :last_name %

Every flash uploader giving bad progress values

我是研究僧i 提交于 2019-12-04 13:06:50
The file upload script I wrote early last year for an internal website has been misbehaving oddly on a number of machines. On some machines it consistently works fine, on others it consistently misbehaves. I am having exactly the same problem with YUI Uploader, SWFUpload (2.2 and 2.5a), and Uploadify. On the misbehaving machines, the progress event (or callback as the case may be) is reporting the upload going far too quickly. It is progressing around 9 or 10MB/s, instead of the 50 or 60kb/s that is actually going on. The progress bar fills up very quickly, and then no more progress events are

How do I set the uploaded files folder for SWFUpload?

纵饮孤独 提交于 2019-12-04 10:55:23
I don't see in the documentation how to set the uploaded files folder with SWFUpload. Can anyone point me to the right direction? I'm using PHP 5 if it helps. Ólafur Waage What you do is call a PHP script, and that script handles the file uploading. You can turn on debug, this will give you a pretty nice debug view of what is happening, and the output of the PHP file in question. The flash doesn't handle the uploading because the flash is actually running on the client machine. Here's an example of the config I use. flash_url : "js/swfupload/flash/swfupload.swf", upload_url: "ajax/flash_upload