Coder Social home page Coder Social logo

digitarald / digitarald-fancyupload Goto Github PK

View Code? Open in Web Editor NEW
277.0 8.0 105.0 485 KB

Swiff meets Ajax for powerful and elegant uploads (MooTools Plugin).

Home Page: http://digitarald.de/project/fancyupload/

PHP 4.80% ActionScript 31.46% JavaScript 63.74%

digitarald-fancyupload's Introduction

FancyUpload - Swiff meets Ajax

Swiff meets Ajax for powerful and elegant uploads. FancyUpload is a file-input replacement which features an unobtrusive, multiple-file selection menu and queued upload with an animated progress bar. It is easy to setup, is server independent, completely styleable via CSS and XHTML and uses [MooTools][] to work in all modern browsers.

Keywords: {#keywords}

  • MooTools
  • FancyUpload
  • Fileinput
  • Uploader
  • Swiff
  • FileReference
  • ExternalInterface

digitarald-fancyupload's People

Contributors

barchard avatar nedk 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

digitarald-fancyupload's Issues

onFileStart for first file gets called too late

Hi

I believe I found a bug.

To be quick I uploaded foto queue demo to my server.
http://www.ngs.kei.pl/fancyupload/build.html

The only thing I added is:

onFileStart: function( file )
{
console.warn( 'onFileStart for ' + file.id );
}

Please take a look at firebug console and You will see when onFileStart is called for file 1

To be completely sure that You know what I saw I captured screenshot of my firebug console.
http://www.ngs.kei.pl/fancyupload.png

Thanks in advance and thanks for FancyUpload - its great stuff.

Best regards
Lukasz Wojciechowski

Support for proxy server?

Hi!

Does fancyupload support specifying a proxy server? My uploads are being blocked by a proxy server & I'm looking for a solution/work-around!

Demo on the site does not work in Safari 4.0.3

I am unable to determine if it is a problem with the fancyuploader or wether it's something with your comments.

Safari error console log:

[The HTML that caused this error was generated by a script.] Unmatched  encountered.  Ignoring tag.
show_ads.jsResource interpreted as script but transferred with MIME type text/html.
Unsafe JavaScript attempt to access frame with URL http://digitarald.de/project/fancyupload/3-0/showcase/photoqueue/ from frame with URL http://disqus.com/embed/reply.html?1254948964422&f=digitarald-de&t=fancyupload_swiff_meets_ajax_1_0&to_redirect=http%3A%2F%2Fdigitarald.de%2Fproject%2Ffancyupload%2F3-0%2Fshowcase%2Fphotoqueue%2F&ifrs=&def_email=&def_name=. Domains, protocols and ports must match.

Removed files are still included in the file list.

When a file is removed from the list before uploading occurs, the text is removed from the screen, however the file is still a part of the 'file list' internally.

This should fix the problem:
In the FancyUpload2.File class, add a call to this.parent() in the onRemove() function.

Check duplicates from optional Array

option should be called checkDuplicates or something better. It can contain filenames or an object with name/size. File::validate would check for it and the disabled allowDuplicates option.

Response is truncated somethimes

Hello,

For some mysterious reasons the JSON response is truncated sometimes :

"{"rc":{"element":"<div class="file-upload-element"><var class="options" style="display: none; font-size: .8em; font-family: monospace">{"path":"\/$wd\/wdpublisher\/protected\/modules\/resources.files\/public\/fancyupload\/Swiff.Uploader.swf","fileSizeMax":134217728}</var><div class="input">URL du fichier (temporaire)</small> : <input name="path" value="/repository/$temp/phpJnbS1X.jpg" readonly="readonly" type="text" /></label> <button type="button">Choisir un fichier</button>\n<small class="file-size-limit" style="display: block; margin-top: .5em">La taille du fichier doit \u00eatre inf\u00e9rieure \u00e0 128 Mo. </small></div><div class="infos"><ul class="details">

  • <span title="Path: /repository/$temp/phpJnbS1X.jpg">phpJnbS1X.jpg</span></li>
  • Image size: 1417×941px</li>
  • Display ratio: 3%</li>
  • 981.66 Kb</li></ul><div class="preview"><a href="/repository/$temp/phpJnbS1X.jpg&uniqid=4b20d50a77935"

    And it's completely random. Sometime it works, sometimes it doesn't. I was wandering if there is a limit to the Flash response buffer, or if anyone has experienced this, because it happens a lot where I work and I can't figure out the reason.

    PS: It works perfectly on Windows, the problem seams to be with the flash player on OSX.

  • Error-Timeout after progress 100%

    Complete fails when the server takes too long or when no response content is sent. timeout could fire an error after (default) 30s and cancel the upload.

    Flash can crash browsers during refresh when its waiting for a server response (but got a redirect or empty content). cancelling the upload should prevent that.

    Too much logic hidden in actionscript

    In this release much of the actual functionality that used to live in FancyUpload2 has been moved into the actionscript source. This makes it unnecessarily difficult to adapt FancyUpload.

    My specific use case:
    I have to remember uploaded files across page reloads. Now since there is no "manual" addFile method I can not "inject" the files into flash so they are only known on the JS side. This leads to problems if a user tries to delete such a file since flash doesn't know about them and consequently can't fire the "remove" event on the file.

    I solved this problem with a custom FileClass but still it's harder then it could be.

    Fancy Upload makes website crash or minimalize on 'select files'

    I have a problem on 1 single PC. When in Internet Explorer I click on the 'browse files' button, the browser minimalizes without an error. In Firefox the browser closes completely when clicking the 'Browse files' button. I get nog error message or warning; the only problem I had/have is that, with the latest flash player installed, the detected version is '0'.

    Any ideas?

    Flash Uploader replace

    Hello, i have a Problem whit the fancy Upload which is integrated in Social Engine4.
    Many of my Users get the Error: Hochladen fehlgeschlagen: Error caused a send or load operation to fail (Error #2038)

    the next thing is, the Flash Player will not be supportet in the future by the mayor Browsers.
    Firefox 55 (the next Firefox) uses the new WebApi so i want to remove flash completely from my Site.

    Is it posible to change the Flashuploader whit a html5 Upload?
    And if yes, How?

    Logic bug in reposition()

    There's a small operator precedence problem in reposition() that causes the function to throw an error when this.target == null. The ternary operator in this statement:

    coords = coords || (this.target && this.target.offsetHeight)
        ? this.target.getCoordinates(this.box.getOffsetParent())
        : {top: window.getScrollTop(), left: 0, width: 40, height: 40};
    

    needs to be wrapped in parentheses:

    coords = coords || ((this.target && this.target.offsetHeight)
        ? this.target.getCoordinates(this.box.getOffsetParent())
        : {top: window.getScrollTop(), left: 0, width: 40, height: 40});
    

    Flash 10 Crash on Browse

    Browsing for files causes a crash in Flash 10 in both Safari 4 and FF 3.5 on the Mac. The console crash log is below.

    Process: WebKitPluginHost [221]
    Path: /System/Library/Frameworks/WebKit.framework/WebKitPluginHost.app/Contents/MacOS/WebKitPluginHost
    Identifier: com.apple.WebKit.PluginHost
    Version: 6531.21 (6531.21.1)
    Build Info: WebKitPluginHost-65312101~1
    Code Type: X86 (Native)
    Parent Process: WebKitPluginAgent [220]

    PlugIn Path: /Library/Internet Plug-Ins/Flash Player.plugin/Contents/MacOS/Flash Player
    PlugIn Identifier: com.macromedia.Flash Player.plugin
    PlugIn Version: 10.0.32 (1.0.4f18472)

    Date/Time: 2009-11-28 10:43:46.456 -0500
    OS Version: Mac OS X 10.6.2 (10C540)
    Report Version: 6

    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x000000006d2e2a20
    Crashed Thread: 0 Dispatch queue: com.apple.main-thread

    Thread 0 Crashed: Dispatch queue: com.apple.main-thread
    0 libSystem.B.dylib 0x9233ea90 strlen + 16
    1 ...romedia.Flash Player.plugin 0x1279af05 0x12714000 + 552709
    2 ...romedia.Flash Player.plugin 0x12abd1c2 Flash_EnforceLocalSecurity + 775458
    3 com.apple.AppKit 0x990f7cc7 -[NSNavOpenPanel _shouldShowNodeRef:] + 2087
    4 com.apple.AppKit 0x990f9633 -[NSNavOpenPanel _delegateShouldEnableNode:] + 296
    5 com.apple.AppKit 0x98e7f8f3 -[NSNavDataSource displayStateForNode:] + 81
    6 com.apple.AppKit 0x98e7a1fd -[NSNavBrowserDelegate browser:willDisplayCell:atRow:column:] + 109
    7 com.apple.AppKit 0x98b5ec03 -[NSBrowser _sendDelegateWillDisplayCell:atRow:column:] + 137
    8 com.apple.AppKit 0x98b5e934 -[NSTableView _delegateWillDisplayCell:forColumn:row:] + 62
    9 com.apple.AppKit 0x98adba51 -[NSTableView preparedCellAtColumn:row:] + 1362
    10 com.apple.AppKit 0x9917071b -[NSNavBrowserTableView preparedCellAtColumn:row:] + 131
    11 com.apple.AppKit 0x98b1f8ef -[NSTableView updateTrackingAreas] + 1260
    12 com.apple.AppKit 0x98a3d9fa -[NSView(NSInternal) _updateTrackingAreas] + 64
    13 com.apple.CoreFoundation 0x949cd4e0 CFArrayApplyFunction + 224
    14 com.apple.AppKit 0x98a3defb -[NSView(NSInternal) _updateTrackingAreas] + 1345
    15 com.apple.CoreFoundation 0x949cd4e0 CFArrayApplyFunction + 224
    16 com.apple.AppKit 0x98a3defb -[NSView(NSInternal) _updateTrackingAreas] + 1345
    17 com.apple.CoreFoundation 0x949cd4e0 CFArrayApplyFunction + 224
    18 com.apple.AppKit 0x98a3defb -[NSView(NSInternal) _updateTrackingAreas] + 1345
    19 com.apple.CoreFoundation 0x949cd4e0 CFArrayApplyFunction + 224
    20 com.apple.AppKit 0x98a3defb -[NSView(NSInternal) _updateTrackingAreas] + 1345
    21 com.apple.CoreFoundation 0x949cd4e0 CFArrayApplyFunction + 224
    22 com.apple.AppKit 0x98a3defb -[NSView(NSInternal) _updateTrackingAreas] + 1345
    23 com.apple.CoreFoundation 0x949cd4e0 CFArrayApplyFunction + 224
    24 com.apple.AppKit 0x98a3defb -[NSView(NSInternal) _updateTrackingAreas] + 1345
    25 com.apple.CoreFoundation 0x949cd4e0 CFArrayApplyFunction + 224
    26 com.apple.AppKit 0x98a3defb -[NSView(NSInternal) _updateTrackingAreas] + 1345
    27 com.apple.CoreFoundation 0x949cd4e0 CFArrayApplyFunction + 224
    28 com.apple.AppKit 0x98a3defb -[NSView(NSInternal) _updateTrackingAreas] + 1345
    29 com.apple.CoreFoundation 0x949cd4e0 CFArrayApplyFunction + 224
    30 com.apple.AppKit 0x98a3defb -[NSView(NSInternal) _updateTrackingAreas] + 1345
    31 com.apple.CoreFoundation 0x949cd4e0 CFArrayApplyFunction + 224
    32 com.apple.AppKit 0x98a3defb -[NSView(NSInternal) _updateTrackingAreas] + 1345
    33 com.apple.CoreFoundation 0x949cd4e0 CFArrayApplyFunction + 224
    34 com.apple.AppKit 0x98a3defb -[NSView(NSInternal) _updateTrackingAreas] + 1345
    35 com.apple.CoreFoundation 0x949cd4e0 CFArrayApplyFunction + 224
    36 com.apple.AppKit 0x98a3defb -[NSView(NSInternal) _updateTrackingAreas] + 1345
    37 com.apple.CoreFoundation 0x949cd4e0 CFArrayApplyFunction + 224
    38 com.apple.AppKit 0x98a3defb -[NSView(NSInternal) _updateTrackingAreas] + 1345
    39 com.apple.AppKit 0x98a3d8db _handleInvalidCursorRectsNote + 392
    40 com.apple.CoreFoundation 0x94a18892 __CFRunLoopDoObservers + 1186
    41 com.apple.CoreFoundation 0x949d518d __CFRunLoopRun + 557
    42 com.apple.CoreFoundation 0x949d4864 CFRunLoopRunSpecific + 452
    43 com.apple.CoreFoundation 0x949d4691 CFRunLoopRunInMode + 97
    44 com.apple.HIToolbox 0x986dbf0c RunCurrentEventLoopInMode + 392
    45 com.apple.HIToolbox 0x986dbbff ReceiveNextEventCommon + 158
    46 com.apple.HIToolbox 0x986dbb48 BlockUntilNextEventMatchingListInMode + 81
    47 com.apple.AppKit 0x98a13ac5 _DPSNextEvent + 847
    48 com.apple.AppKit 0x98a13306 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
    49 com.apple.AppKit 0x98c8a335 -[NSApplication _realDoModalLoop:peek:] + 720
    50 com.apple.AppKit 0x98c89ab1 -[NSApplication runModalForWindow:] + 273
    51 WebKitPluginHostShim.dylib 0x00020de3 shim_NSApplication_RunModalForWindow + 58
    52 com.apple.AppKit 0x98f1c7f3 -[NSSavePanel runModal] + 420
    53 com.apple.AppKit 0x990f67a7 -[NSNavOpenPanel run] + 141
    54 com.apple.AppKit 0x990f835b _NSNavDialogRun + 223
    55 ...romedia.Flash Player.plugin 0x12abbef1 Flash_EnforceLocalSecurity + 770641
    56 ...ple.CoreServices.CarbonCore 0x90abe8cb _MP_RemoteCallback + 32
    57 com.apple.CoreFoundation 0x949d6edb __CFRunLoopRun + 8059
    58 com.apple.CoreFoundation 0x949d4864 CFRunLoopRunSpecific + 452
    59 com.apple.CoreFoundation 0x949d4691 CFRunLoopRunInMode + 97
    60 com.apple.HIToolbox 0x986dbf0c RunCurrentEventLoopInMode + 392
    61 com.apple.HIToolbox 0x986dbcc3 ReceiveNextEventCommon + 354
    62 com.apple.HIToolbox 0x986dbb48 BlockUntilNextEventMatchingListInMode + 81
    63 com.apple.AppKit 0x98a13ac5 _DPSNextEvent + 847
    64 com.apple.AppKit 0x98a13306 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
    65 com.apple.AppKit 0x989d549f -[NSApplication run] + 821
    66 com.apple.WebKit.PluginHost 0x0000625f 0x1000 + 21087
    67 com.apple.WebKit.PluginHost 0x00002035 0x1000 + 4149

    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.