swfupload

Integrating Flash File Upload with JSF

一曲冷凌霜 提交于 2019-12-04 09:35:18
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 be clicked the Form will be validated and it will proceed after. I have created a page for uploading

swfupload 302 error

只愿长相守 提交于 2019-12-03 17:15:28
so I have this javascript code for loading swfuploader onto a page ( http://code.google.com/p/swfupload/ ) swfuPubThumbnailUploader = new SWFUpload({ upload_url : "/upload_thumbnail", flash_url : "/Flash/swfupload.swf", file_size_limit : 512 + " MB", file_post_name: 'files[swf]', file_types : '*.jpg;*.jpeg;*.gif;*.png', file_types_description: "Image Files", file_queue_limit : 1, button_placeholder_id: 'swf-trans-file-selector', button_text: '', button_image_url: '', button_width: "85", button_height: "25", button_cursor : SWFUpload.CURSOR.HAND, button_window_mode : SWFUpload.WINDOW_MODE

Using Rails with Paperclip and SWFUpload

不问归期 提交于 2019-12-03 14:12:22
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 %> </p> <p> <%= f.label :file %><br /> <%= f.file_field :file %> </p> <p> <%= f.label :photo %><br /> <%

SWFUpload startUpload() fails if not called within the file_dialog_complete_handler

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 Call to ReturnUploadStart failed The exception

Is SWFUpload still alive?

时光怂恿深爱的人放手 提交于 2019-12-03 04:04:58
I'm considering using SWFUpload on my site, but I saw that the last release was in March 2010, and it was a beta. It looks like the SWFUpload people stopped there development. Is this project still alive? Is there an alternative? Sparky In my opinion, SWFUpload looks pretty dead... No Issue updates since June 2010 at Google Code... http://code.google.com/p/swfupload/issues/list There IS lots of recent activity at the official SWFUpload discussion forum. Have you asked there yet? http://groups.google.com/group/swfupload/topics As far as alternatives, there's quite a few... http://www.solmetra

JAVA版-SWFUpload使用(包括传参问题)

南楼画角 提交于 2019-12-03 00:24:20
官方的版本中只有php的版本,从网上找了其他人写的内容,自己实现了一个servlet的版本, 但是又出现另一个问题,如何向后台传递参数的问题,现在整理出来,以备忘。 问题: 1、编码问题,做的示例用的gb18030,所以后台很多的转码问题,采用UTF-8,能好一些, 2、传递中文问题,最好还是前台进行encoding,(encodeURI),后台进行解析取出来吧--未测试 上代码: 一、前台页面index.jsp <%@ page language="java" import="java.util.*" pageEncoding="GB18030"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>文件上传swfupload使用</title> <meta http-equiv="pragma"

ASP.Net session state not available on another webpage

社会主义新天地 提交于 2019-12-02 04:27:40
I'm designing a single page web application with all the action happening on default.aspx. I store the user's user id in Session after he logs on. I use SWFUpload in default.aspx to upload files to upload.aspx. When upload.aspx receives a file, it checks HttpContext.Current.Session for the user's id. This used to work, but since recently HttpContext.Current.Session doesn't have any values regarding my session. I must have changed something along the line but I have no idea what. Stranger still, it still works with IE, but not with either Firefox or Chrome. I also read something about Flash in

swfupload destroy session? php

家住魔仙堡 提交于 2019-12-02 00:47:05
hy, i need a little help here: i use SWFupload to upload images! in the upload function i make a folder call $_SESSION['folder'] and all the files i upload are in 1 array call $_SESSION['files'] after uploads finish i print_r($_SESSION) but the array is empty? why that? this is my upload.php: if($_FILES['image']['name']) { list($name,$error) = upload('image','jpeg,jpg,png'); if($error) {$result = $error;} if($name) { // Upload Successful $result = watermark($name); print '<img src="uploads/'.$_SESSION['dir'].'/'.$result.'" />'; } else { // Upload failed for some reason. print 'noname'.$result;

SWFUpload ASP.Net example site not working?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 11:29:11
问题 http://swfupload.org/node/7/release The .Net 2.0 sample is not working, has anyone faced the same thing and have been able to make it work? The solution is compiling and the default page is opening normal in FireFox but when I click on the button nothing happen, and in IE the button is not appearing at all 回答1: A few things note with the SWFUploader is that although there is a .Net test project it is a little miss leading and does a lot more than is really required, its great if you want to

What to do when there are two cookies with the same name in IE7?

≡放荡痞女 提交于 2019-12-01 05:07:26
问题 Some background: CakePHP writes it's own session id cookie besides the PHPSESSID. This is used to authenticate a request. Then an SWFupload sends a file, and that token to authenticate, and is picked up as a new user agent - so in cakephp you must disable the "check-user-agent" security feature. On many browsers this is enough. IE7 version and SWF version seem to have no corelation to this bug. In our case IE7 was storing/sending two versions of the same cookie. So the first question is why?