uploadify

Uploadify FOLDER

巧了我就是萌 提交于 2019-12-05 16:07:40
I am using Uploadify to upload Files and using Codeigniter framework. Here is my Uploadify code : $("#change_profile_icon").uploadify({ 'uploader' : '/project/style/scripts/crop/uploadify/uploadify.swf', 'script' : 'http://localhost/project/pages/profile_icon', 'cancelImg' : '/project/style/scripts/crop/uploadify/cancel.png', 'buttonText' :'Upload image', 'width' : '110', 'height' : '30', 'queueID' : 'fileQueue', 'auto' : true, 'scriptData' :{username :"<?php echo $this->session->userdata('username');?>",folder:"honda"}, 'queueSizeLimit' : 1, 'multi' : false, 'fileDesc' : 'jpg', 'fileExt' : '*

上传插件uploadify文档粗略解读

不羁岁月 提交于 2019-12-05 12:03:58
uploadify文档粗略解读 官方下载地址: http://www.uploadify.com/demos/ 文档阅读: 一般性建议: 执行uploadify 使用uploadify方法 自定义服务器端上传脚本 上传时使用session 1.属性 属性有29个 auto 为true时当选择文件后就直接上传了,为false需要点击上传按钮才上传 。为false时需要上传按钮 布尔类型 默认值true ##buttonClass 额外增加的上传按钮样式类型 字符串类型 默认为"" ##buttonCursor 鼠标指针悬停在按钮上的样子 字符串类型 默认为hand ##buttonImage 浏览按钮的图片的路径 。 字符串类型 默认为null ##buttonText 浏览按钮的文本。 字符串类型 默认 SELECT FILES ##width 设置文件浏览按钮的宽度。 整形 默认为120 ##height 设置浏览按钮的高度 整形 默认值30 ##swf uploadify.swf 文件的相对路径。 字符串型 默认‘uploadify.swf’ 同级目录 ##uploader 服务器端脚本处理路径 字符串型 默认为uploadify.php (官方默认的程序) ##uploadLimit 最大上传文件数量,如果达到或超出此限制将会触发onUploadError事件。 整形

Resizing and cropping image with GD while retaining aspect ratio

与世无争的帅哥 提交于 2019-12-05 11:43:53
I'm currently coding an uploader script based on Uploadify. Right now I resize the given image and watermark one of the sizes. It all works well, but I need the script to resize the height and then crop the width so that the aspect ratio does not get messed up. This is my code so far: if ($fileExtension == "jpg" || $fileExtension == "jpeg" || $fileExtension == "png" || $fileExtension == "gif"){ // GD variables: list($width, $height, $type) = GetImageSize($uploadedFile['tmp_name']); // Image sizes: $bigImage = array(800, 453); $mediumImage = array(410, 231); $listImage = array(120, 68);

附件上传组件uploadify的使用

不羁岁月 提交于 2019-12-05 09:24:20
1、bootstrap-fileinpu的简单介绍 在前面的随笔,我介绍了Bootstrap-table表格插件的具体项目应用过程,本篇随笔介绍另外一个Bootstrap FieInput插件的使用,整合两者可以实现我们常规的Web数据导入操作,导入数据操作过程包括有上传文件,预览数据,选择并提交记录等一系列操作。 关于这个插件,我在早期随笔《 Bootstrap文件上传插件File Input的使用 》也做了一次介绍,这是一个增强的 HTML5 文件输入控件,是一个 Bootstrap 3.x 的扩展,实现文件上传预览,多文件上传等功能。 bootstrap-fileinput源码: https://github.com/kartik-v/bootstrap-fileinput bootstrap-fileinput在线API: http://plugins.krajee.com/file-input bootstrap-fileinput Demo展示: http://plugins.krajee.com/file-basic-usage-demo 这个插件主要是介绍如何处理图片上传的处理操作,原先我的Excel导入操作使用的是Uploadify插件,可以参考我随笔《 附件上传组件uploadify的使用 》,不过这个需要Flash控件支持,在某些浏览器(如Chrome

Using Cucumber testing for uploadify on rails 3

别来无恙 提交于 2019-12-05 08:47:40
I want cucumber test for uploadify on ruby on rails 3. I had tried to click on the upload button from capybara but as it is neither button nor link. Furthermore, it is hiding the text_field so I cannot write "When I fill in "upload" with "text.txt"". If any one has solved this problem, please help is needed here. Write custom step for uploading a file When /^(?:|I)attach the file "([^"]*)" to "([^"]*)"$/ do |path, field| type = path.split(".")[1] case type when "jpg" type = "image/jpg" when "png" type = "image/png" when "gif" type = "image/gif" end attach_file(field, path, type) end When /^I

Implementing jquery upload plugin 'uploadify' with codeigniter

家住魔仙堡 提交于 2019-12-05 06:14:49
问题 How can i implement this in codeigniter?Uploadify(Jquery) I mean what will be the controller? Hows the progress tracked? And what will happen if flashplayer is not installed by the user? And How do i check progess? Have any one tried this with codeigniter? 回答1: I have successfully implemented uploadify in codeigniter as follows: In the header view : <script type="text/javascript" src="<?php echo base_url()?>resources/js/jquery.js"></script> <link rel="stylesheet" type="text/css" media="all"

Uploadify not uploading file, but indicates success

核能气质少年 提交于 2019-12-05 06:13:37
I have found some posts with the same problem I have, however, no solutions presented. I am not 100% sure what to make of this, but hope you can help. I am attempting to use Uploadify to upload files, but the following happens: Browse for file successful (hence my 'script' and 'uploaded' attributes are correct) Progress bar says "100%" and completes. onComplete fires saying upload successful (according to the path alerted, 'folder' attribute is correct.) If I die my script before any output, the #3 step does not happen - hence it reaches the 'script' specified. After output, the script doesn't

checkbox is always “on”

大兔子大兔子 提交于 2019-12-04 22:14:52
Hy! When Uploadify send the file to the action, I need to know if the checbox is checked or not, so I did: $('#uploaded').uploadify({ 'uploader': '/uploadify.swf', 'cancelImg': '/cancel.png', 'script': '/Interaction/Upload', 'multi': true, 'auto': false, 'method': 'post', 'scriptData': {'Checkbox': $('#checkbox').val()}, }); But I aways get an "on" value. No matter if is checked or not. can anyone help? Tks. UPDATE: I realized that uploadify is getting the checkbox when the page is loaded.This means that if I change the checkbox (or any other type of input) the uploadify will get the initial

cannot change php upload size limit

我只是一个虾纸丫 提交于 2019-12-04 21:59:38
I used uplaodify plugin to upload music files. Everyting is okay in my local uploadify.php file is in public_html/uploadify directory i want to increment my upload file size limit to 10 MB i tried to put php.ini file in public_html post_max_size = 500M upload_max_filesize = 500M max_execution_time = 900; max_input_time 900 and I am looking my phpinfo() thats good but ı cannot upload bigger than 2MB And i tried to put same php.ini in public_html/uploadify Now I can upload file which size 2.5 MB , but no upper; And ini_set('upload_max_size','10M'); ini_set('post_max_size','10M'); ini_set('max

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