Giter VIP home page Giter VIP logo

tmaiaroto / agile_uploader Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 12.0 735 KB

Upload files, other form data, and optionally resize any uploaded images on the client side before uploading to save on server bandwidth. Resizing before uploading can also help save a server from processing unnecessarily large image files if further image processing (manipulation or simply having the server save multiple sizes) is done on the server.

Home Page: http://www.shift8creative.com/projects/agile-uploader/index.html

ActionScript 91.52% PHP 2.87% JavaScript 5.61%

agile_uploader's People

Contributors

bp163 avatar tmaiaroto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

agile_uploader's Issues

resizing fails

Using latest version, I have:

    $('#multiple').agileUploader({
        submitRedirect: 'results.php',
        formId: 'multipleDemo',
        maxFileMessage: 'File limit reached.',
    flashVars: {
        firebug: false,
        max_height: 1000,
        max_width: 1200,
        jpg_quality: 90, 
        preview_max_height: 120,
        preview_max_width: 120,
        file_filter: '*.jpg;*.jpeg;*.JPG;',
        file_filter_description: 'jpg Image Files Only',
            form_action: 'process.php',
        file_limit: 6
        }
    }); 

I upload an image measuring 1504 wide by 1000 high. No resizing occurs.
I upload an image measuring 1104 wide by 1604 high. No resizing occurs.
I upload an image measuring 1684 wide by 1289high. Resizing occurs according to parameters, resulting in 1200 wide by 912 high.

Error 2101 trying to submit file when "formId" option is empty

Trying to reproduce the step:
Chrome 15.0.874.106, player 11.0.1.152 (debian squeeze, I hope You do not need my kernel version)

Here is my js:

        $('#single').agileUploaderSingle({
                flashSrc: '/agile-uploader/agile-uploader.swf',
                progressBarColor: '#548fd1',
                flashWidth: 121,
                flashHeight: 28,
                flashVars: {
                        firebug: true,
                        form_action: 'uploader.php',
                        button_up:'/images/button-gray.png',
                        button_over:'/images/button-blue.png',
                        button_down:'/images/button-blue.png',
                        return_submit_response: true,
                }
       };

U can see that I do not have entered "formId" parameter.
When trying to upload file I can see Error 2101 in console.
I've changed a js a little to get it works -

$.fn.agileUploaderSerializeFormData = function() {      
    if((typeof(opts.formId) == 'string') && ($('#'+opts.formId).length > 0)) {          
        return $('#'+opts.formId).serialize();      
    }
    return false;
}

I've replaced return value in this function, so for now it looks like

$.fn.agileUploaderSerializeFormData = function() {      
    if((typeof(opts.formId) == 'string') && ($('#'+opts.formId).length > 0)) {          
        return $('#'+opts.formId).serialize();      
    }
    return '';
}

And it works.
Because as I see in Main.as, line 530 You do not test 'false' value, only 'null' and ''.
Thanks.

auto submit once queue has finished processing

Basically I am looking to auto submit the queue once finished image resizing.
I have tried many methods but always get the "The form can not be submitted yet because there are still files being resized. " message...
Any thoughts?

jQuery Flash optional settings & Firefox issues

It's not necessary to repeat the optional parameters when calling jQuery flash:
classid: 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000', // For IE support.
codebase: 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=', // Ditto.
pluginspace: 'http://get.adobe.com/flashplayer', // Download Firefox plugin if missing.

These can be omitted. Infact in some circumstances including them in the jQuery plugin causes problems in Firefox, in that the call to agileUploader() fails to override flashSrc with that given in the override. Removing the parameters above from the plugin fixes the problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.