plupload

Plupload set album name before upload

寵の児 提交于 2019-12-11 07:19:03
问题 I just knew that upload.php file will run for each uploaded file. So when if there are 5 files, the upload.php will run 5 times right? I need to insert a record into mysql 'album' table so that I can get the albumid to be inserted into the 'photos' table. My idea is to run a script before the upload starts. How is that possible with plupload? Or any different idea guys? Or to the root question, is there any way to specify the album for the uploaded photos? Thanks 回答1: I guess you could : have

Plupload filename problem

僤鯓⒐⒋嵵緔 提交于 2019-12-11 04:07:21
问题 I ask here in the hope that some members will be familiar enough with 'plupload' to help. This little Jquery script is on the way to making my file-upload problems go away, so any help would be greatly appreciated. Question: I can upload large files using plupload, but when the appear on the server the name has changed to gibberish, EG p163g1k1er15n310bi18bq1af61rc21.zip From my experience with basic upload forms my assumption is that it is writing out a temp filename with the intention of

Premature end of JPEG file

旧巷老猫 提交于 2019-12-11 03:26:20
问题 I am getting this Premature end of JPEG file error while resizing some of the images. Interesting and strange part is that i am getting this error only when i upload any camera taken images, like from mobile, other than those every thing works great. I thought this could be because of the chunk size used in plupload. So, i uploaded with larger sized image to somewhat like 3mb to test. Works fine with images other than camera taken images. So, whenever i upload camera pics i get this error.

AngularJS ngRepeat Not Updating Display Properly

℡╲_俬逩灬. 提交于 2019-12-10 16:39:48
问题 I have have a page where I am using plupload to upload files and having a weird issue with a ng-repeat not updating properly. Here is the relevant code: <div ng:app> <div name="myForm" ng-controller="Ctrl"> <input ng-model="test" type="text" />{{test}}<div id="container" class="controls"> <div id="filelist"> <div ng-repeat="file in filesToUpload">{{file.name}} ({{file.size}}) <b>{{file.percent}}</b></div> </div> <br /> <a id="pickfiles" href="#">[Select files]</a> </div> </div> </div>​

Not able to get JSON data from Plupload

只愿长相守 提交于 2019-12-10 15:52:54
问题 I'm uploading files using Plupload and it works fine. I've tested various suggestions found here on Stackoverflow, but I'm still not able to get any sensible data from my JSON respons. In my upload.php file I have echo json_encode($result); In my JS I do the following: uploader.bind('FileUploaded', function(up, file, response) { var obj = jQuery.parseJSON(response); var obj2 = eval(response); alert(response.toSource()); // <-- Outputs raw data alert(obj); // <-- is NULL alert(obj2.toSource())

plupload的一些使用心得

有些话、适合烂在心里 提交于 2019-12-09 11:22:41
最近要做一个文件上传的东西 经过同事的推荐所以就选择了plupload,挺强大的 由于项目框架为改动后的MVC 刚一开始破费周折 不过最后总算是完成了 废话不多说了 粘出来代码给大家参考吧!文件包大家去官网上面下载吧。下载地址http://www.plupload.com/ 引用 <link rel="stylesheet" href="$webpath/library/js/plupload/css/plupload.queue.css" type="text/css" media="screen" /> <script type="text/javascript" src="$webpath/library/js/plupload/jquery.min.js"></script> <script type="text/javascript" src="$webpath/library/js/plupload/jquery.plupload.queue.min.js"></script> <script type="text/javascript" src="$webpath/library/js/plupload/plupload.min.js"></script> <script type="text/javascript" src="$webpath/library/js

java web Excel导入、导出的实现

大憨熊 提交于 2019-12-09 09:14:44
在做web开发时,我们经常会用到数据表格的导入导出功能,这样可以帮我们节省人工操作的时间,极大提高办事效率,下面,直入正题: 笔者所做的导入导出是针对java springMVC框架、工作簿poi以及前端plupload.js插件设计的。 第一步、总体介绍 首先,来看页面展示,如下图: 导入菜单包含模板下载和导入数据,如下图: 点击模板下载,弹出模板下载对话框,如下图: 点击导入数据,弹出导入对话框,如下图: 接下来,再来看看导出,包含导出当前页和导出全部,如下图: 点击导出当前页或是导出全部后,生成excel,如下图: 最后再来看看导入模板和生成的excel,如下图: 我的模板是放在src/main/webapp/template下的。 第二步、模板下载和导入 首先,来看看前台导入、导出的jsp代码: <!-- 导出,当前页和页大小隐藏域 --> < input type = "hidden" name = "currentPage" id = "current" value = "0" /> < input type = "hidden" name = "pageSize" id = "size" value = "0" /> ID: < input type = "text" name = "id" id = "userId" /> 姓名: < input type =

plupload runtimes returning 403 FORBIDDEN error when trying to access upload.php

↘锁芯ラ 提交于 2019-12-08 17:19:01
问题 Introduction I'm trying to achieve something relatively simple, in a potentially complicated environment. I would like to upload files, from a JavaScript widget (Netvibes UWA format) to a local intranet server, using the plupload jQuery UI plugin. Problem I've set my code up seemingly correctly - the plupload container appears and I can happily select and upload files. The uploading seems to work - each file hits 100% - but when I check my Firebug console, I get the following error: OPTIONS

PLUpload Get Files Remaining?

这一生的挚爱 提交于 2019-12-08 13:36:58
问题 So I'm using PLUpload to, well, upload files. However, I've run into a problem. I'm trying to fire an event when the queue is completed. I'm close, but not quite there. See here: $(function() { var files_remaining = 0; // Setup flash version $("#flash_uploader").pluploadQueue({ // General settings runtimes : 'flash', url : 'blah.php', max_file_size : '200mb', chunk_size : '1mb', // Flash settings flash_swf_url : 'plupload.flash.swf' }); var uploader = $("#flash_uploader").pluploadQueue();

Plupload crossdomain upload 200 http error

一笑奈何 提交于 2019-12-08 03:20:28
问题 I would like to upload files to a remote server using the plupload library. Everything works with Chrome (32.0) and IE 10 using the html5 runtime but when I try with Firefox 27 (html5 runtime) or IE 8 (html4 runtime) I get an error Error #-200: HTTP Error. . Clientside script : $(function() { var uploader = new plupload.Uploader({ browse_button: 'browse', url: 'https://remote.com/API/action.php', runtimes : 'html5,flash,silverlight,html4', flash_swf_url : './js/Moxie.swf', silverlight_xap_url