uploader

前端上传组件Plupload使用指南(转发)

≡放荡痞女 提交于 2019-11-28 22:03:52
我之前写过一篇文章《 文件上传利器SWFUpload使用指南 》,里面介绍了上传组件SWFUpload的使用方法,但现在随着html5技术的逐渐推广和普及,再去使用以flash为上传手段的SWFUpload显然就有点过时了,毕竟html5原生的就给我们提供了文件上传的API。 Plupload 是一款由著名的web编辑器 TinyMCE 团队开发的上传组件,简单易用且功能强大,我们完全可以使用Plupload来代替以前的SWFUpload。 Plupload有以下功能和特点: 1、拥有多种上传方式:HTML5、flash、silverlight以及传统的<input type=”file” />。Plupload会自动侦测当前的环境,选择最合适的上传方式,并且会优先使用HTML5的方式。所以你完全不用去操心当前的浏览器支持哪些上传方式,Plupload会自动为你选择最合适的方式。 2、支持以拖拽的方式来选取要上传的文件 3、支持在前端压缩图片,即在图片文件还未上传之前就对它进行压缩 4、可以直接读取原生的文件数据,这样的好处就是例如可以在图片文件还未上传之前就能把它显示在页面上预览 5、支持把大文件切割成小片进行上传,因为有些浏览器对很大的文件比如几G的一些文件无法上传。 Plupload的使用方法也与SWFUpload非常类似,可以分为以下几步: 1、引入js文件

“ iframe.contentDocument” Not Working in IE8 and FF(3.5 and below) any other steps to solve this?

最后都变了- 提交于 2019-11-28 03:12:34
问题 I used this "iframe.contentDocument" in js file-uploader , But it not working in IE8 ,Firefox(3.5 and below versions. How can i solve this by using other DOM's for working with iframe ? Thanks to all 回答1: Try var doc; var iframeObject = document.getElementById('iframeID'); // MUST have an ID if (iframeObject.contentDocument) { // DOM doc = iframeObject.contentDocument; } else if (iframeObject.contentWindow) { // IE win doc = iframeObject.contentWindow.document; } if (doc) { var something =

Picasa access in android: PicasaUploadActivity

浪尽此生 提交于 2019-11-27 21:04:02
问题 I am new to Android, and I'm struggling to figure out exactly what tools are available to me. I am developing for Android 2.0.1 for now, just because that is what my device runs. Specifically, I am writing an app that I would like to upload images to a Picasa album. I am almost sure this is supported; for example, the built in (Google?) photo viewer has a 'share' button with a Picasa option, and even a small bit of sample code, including the snippet [borrowed code! apologies if this is