Topic: Plupload v1.5b

Ability to upload big (very big) files in HTML5

We were waiting for this for quite some time already - HTML5 runtime in chunking mode now can upload huge files (theoretically as big as your PC and server can store). We personally have tested with 1.4GB (!)... But of course there are some ugly sides to this feature as well. Most importantly that HTML5 still stays limited to Chrome/Firefox (and partially Safari). But there is more. Truly properly this feature is implemented only in Chrome. Gecko 2-6 have some serious problems with FormData+Blob combination (basically they can't send it at all, at least not in the way typical server can understand), but we've found a good workaround here, which works quite reliably at least on Windows (some memory leakage discovered on Firefox + Mac). But!.. in any case this is much much better then reading whole file in memory. So... it IS progress after all.

Exif/GPS data now available in HTML5/Flash

While we had the logic for this for a while, we never made this info available for the user. Probably because no one really asked for this. But now some - did and we make it available through two new events: ExifData, GpsData. Try to attach some handlers to these and see what you will get.

Fix SilverLight problem with some big uploads

An important bug has been fixed in SilverLight runtime, which caused some huge uploads to fail near the end. Try it on 9GB file now (do not forget to try HTML5 as well - I think it's noticeably faster).

BeforeUpload can now cancel upload progression

One could think - woa, it couldn't until now?.. Yep. It could not. Strange, but true. Now we finally correct this inconsistency.


    UI Widget: Fix sortable logic.
    UI Widget: Fix bug, when message was displayed simultaneously across all Plupload UI instances on the page.
    UI Widget: notify() method is now public - users can throw their own messages into the widget header.
    HTML4/HTML5: Revise input[type=file] placement logic to support cursor styling on Geko 2+.
    HTML5: Revise Drag'n'Drop detection logic.
    HTML5: Make Exif and GPS information available to user, introduce two new events: ExifData and GpsData.
    HTML5: Add support for File.prototype.slice() method (mozSlice/webkitSlice) in order to be able to upload files in chunks without preloading.
    HTML5: Remove any JPEG headers before restoring them, 'cause user agent (like Chrome), might be inserting it's own.
    Flash: Remove a limit on the depth of image header check, since it still fails in some cases and performance gain is negligible.
    Flash: Fix regression, when runtime hanged when not images where passed in as images.    
    SilverLight: Fix bug, when JSON serializer was failing on null.
    SilverLight: Remove cast to integer for chunk boundary, which resulted in a wrong size for last chunks on huge files.
    SilverLight: Increase read buffer, add disposal of ImageStream and FileStream, optimize for performance.
    Updated build.xml to include language packs in release package under js/ folder.
    Gears/BrowserPlus: Add support for * file filter.
    BeforeUpload now can cancel upload if required.
    Additional MIME types: text/csv, image/photoshop, video/x-ms-wmv, video/avi, video/webm support
    Additional language packs: Japanese
    Cleaned examples.   
If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload v1.5b

We are releasing this update as beta, because of some dramatic changes in HTML5 runtime. We are open to suggestions. Do not hold in your feedback.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload v1.5b

If you select multiple files in the HTML5 runtime on http://plupload.com/example_all_runtimes.php all files have size 0 b.
It does only work if you select every single file on its own by hitting "Add files" and select only one file, that gets queued. you can repeat this for all files you want to add and then hit "Start Upload".

I tried it with Windows 7 and Safari 5.1 (7534.50)

Re: Plupload v1.5b

This is most likely due to a bug in the current release of Safari 5.1 for Windows.  There is an issue logged for this:

https://github.com/moxiecode/plupload/issues/363

You can check this - do you get the same behaviour with Firefox or Chrome and the HTML5 runtime?

Re: Plupload v1.5b

Damn... I thought that problem was only Drag'n'Drop related. Now it's seems whole multiple thing is screwed neutral

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload v1.5b

Any other browser works for me. The only child that makes pain is safari 5.1

Re: Plupload v1.5b

I pushed a commit to github, disabling multiple file selection on Safari for Windows completely... for some time I guess.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

8 (edited by NextOne 2011-09-14 10:34:53)

Re: Plupload v1.5b

- Large upload works fine Windows/Chrome/HTML5
- DnD works fine Windows/Chrome/HTML5
- Large Upload on Windows/HTML5/Firefox 3 seems to be limited to 50Mb (even if the file is larger it is cut) => works on FF5/6

Re: Plupload v1.5b

Large upload in Firefox (despite of the bug) works starting from Firefox 4. Desired effect is reached only in Firefox 7 though neutral

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload v1.5b

Unfortunately, the file still gets stored in ram memory in firefox 7 (windows).  Files over 1.5gb are failing because I (the uploader) run out of ram.

So, here is my understanding... the new html5 uploader doesn't work properly in Firefox, or in Safari (windows), or in IE.  Is that correct?

In chrome, it works beautifully.  I just finished a 5.6gb file upload.

Could one of the administrators possibly outline when the new html5 uploader will work properly, and in which browsers?

Thanks

Re: Plupload v1.5b

Firefox has some serious flaws with garbage collecting quickly created things, especially if you are on Mac. Are you testing Firefox on Mac? I had a nice test with Firefox 6 on Windows, where I was able to upload quite big file (around 1gb), although the same approach doesn't work on Mac, since there is a bug in Gecko 6 for Mac. No idea when these issues will be addressed. HTML5 upload not possible at all in IE, Opera, or Safari, they simply lack required functionality.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload v1.5b

Ok, thanks Davit.  Another issue now... I thought I would give silverlight a try, as a backup to HTML5 still allowing large file uploads.  Unfortunately, this appears to be filling ram memory even faster than html5.  I don't get it.  I thought that using silverlight, or any of the 3rd party uploaders, would eliminate the need to store the file in memory.

This update is proving to be quite bumpy for someone who needs 3gb+ file uploads.  Should I continue to depend on JakobAdams java runtime plugin?

Re: Plupload v1.5b

@agentOOjoe do you have chunking activated?

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload v1.5b

Is there an example or documentation of new events  ExifData & GpsData introduced in 1.5?

What info is available and how do I access it? Do I define these in init:{...}?

Re: Plupload v1.5b

@ketulgandhi, you define it just as any other event. Just try. in the event handler you should get three arguments: uploader object, file object, and Exif/Gps data object (currently those events are only triggered if you have client resizing activated).

...
uploader.bind('ExifData', function(uploader, file, exif) {
    console.log(exif);
});
...

Here is the printout of available data in Exif object (we include only the most widespread):

ApertureValue: 2.970853573907009
ColorSpace: "sRGB"
DateTimeOriginal: "2011:08:09 19:55:53"
ExifVersion: "0221"
ExposureMode: "Auto exposure"
ExposureTime: 0.016666666666666666
FNumber: 2.8
Flash: "No flash function"
ISOSpeedRatings: 64
MeteringMode: "Average"
PixelXDimension: 100
PixelYDimension: 75
SceneCaptureType: "Standard"
Sharpness: "Soft"
ShutterSpeedValue: 5.90689238210399
WhiteBalance: "Auto white balance"

And here is example printout for Gps object:

GPSLatitude: Array[3]
GPSLatitudeRef: "N"
GPSLongitude: Array[3]
GPSLongitudeRef: "E"
If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload v1.5b

agentOOjoe wrote:

Unfortunately, the file still gets stored in ram memory in firefox 7 (windows).  Files over 1.5gb are failing because I (the uploader) run out of ram.

So, here is my understanding... the new html5 uploader doesn't work properly in Firefox, or in Safari (windows), or in IE.  Is that correct?

In chrome, it works beautifully.  I just finished a 5.6gb file upload.

Could one of the administrators possibly outline when the new html5 uploader will work properly, and in which browsers?

Thanks


An update: I am stupid!
Months later, I find that the reason firefox was using so much memory is because I had firebug running.  Just wanted to correct myself and say that everything works great in Firefox 7 (under normal conditions).

Re: Plupload v1.5b

@agentOOjoe wink

If you want to see your issue fixed, do not report it here, do it on - GitHub.