1 (edited by chobo2 2011-07-05 01:00:59)

Topic: IO error. Error #2038 (Flash not working)

Hi

I am using plupload (v 1.4.3.2) and set it up a few weeks ago and everything worked. I have not touched it since then.

Now it does not work. The file gets to 100% then I get this great descriptive error

IO error. Error #2038

 var renderImportForm = $(selectors.uploader).livequery(function ()
        {

            var uploader = $(this).plupload({
                // General settings
                runtimes: 'html5,silverlight,flash',
                url: urls.importCalendarsURL,
                max_file_size: '5mb',
                max_file_count: 10, // user can add no more then 10 files at a time
                unique_names: true,
                multiple_queues: true,
                // Resize images on clientside if we can
                resize: { width: 320, height: 240, quality: 90 },

                // Rename files by clicking on their titles
                rename: true,

                // Sort files
                sortable: true,

                // Specify what files to browse for
                filters: [
                    { title: "iCalendar", extensions: "ics" }
                ],


                // Flash settings
                flash_swf_url: my.uploaderSettings.flash,

                // Silverlight settings
                silverlight_xap_url: my.uploaderSettings.silverLight,

                init:
                {
                    UploadComplete: function (up, file, info)
                    {
                       alert('hi');
                    }
                }
            });

The above code works.

If I flip it around to what it was originally(what was set a few weeks ago)

            runtimes: 'flash,html5,silverlight,'

it does not work. So this leads me to believe it is a problem with flash as html 5 works.

silverlight does not work as well different problem though. It won't launch a dialog box when you click "add files".

No javascript errors come up in firebug.

Re: IO error. Error #2038 (Flash not working)

You do not use chunks, and do not force Plupload into urlstream mode... it might be sessions problem on your server. Have you maybe activated sessions on your server recently?

If it's sessions problem the easiest way to solve it in your case, would be to set: urlstream_upload option to true.

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

Re: IO error. Error #2038 (Flash not working)

davit wrote:

You do not use chunks, and do not force Plupload into urlstream mode... it might be sessions problem on your server. Have you maybe activated sessions on your server recently?

If it's sessions problem the easiest way to solve it in your case, would be to set: urlstream_upload option to true.

I am not using really any sessions. Should I set chunking or what?

Re: IO error. Error #2038 (Flash not working)

Try urlstream_upload: true.

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

Re: IO error. Error #2038 (Flash not working)

davit wrote:

Try urlstream_upload: true.

That seems to work.  I will do some more testing

What is the difference between true and false?

urlstream_upload
    Boolean state if Flash should be forced to use URLStream instead of FileReference.upload.

I am not sure what URLStream vs FileReference.upload.

Silver light still does not work though. When I click "add files" the dialog never shows up.

6 (edited by Drachenfels 2012-02-20 15:38:10)

Re: IO error. Error #2038 (Flash not working)

I found a solution for me and it was quite funny.

First urlstream_upload solves the issue for me. But when adding bigger file, usually flash runtime dies and crashes my browser (chromium at linux).

So I kept looking. And then by accident I noticed that when I add:

        headers: {
            Authorization: ""
        }

Error 2038 disapperas. Plupload worked flawlessly with http, but when we move into https, that error shown. Adding such header, workarounds the problem.

Hope it will help someone.


Looking at this post:

/punbb/viewtopic.php?id=425


I'm thinking, maybe it's somehow related to caching? When adding a header flash disables caching for request, exactly the same way when you change random letters in url (flash doesn't recognize new url, so in fact executes it). Just a crazy idea.

Re: IO error. Error #2038 (Flash not working)

I'm still having this issue, bug file uploads work on http protocol.
As soon as I try to do the same in https I get the IO error #2038 message.

i tried adding the authorization header and still not working.

Anyone else has more suggestions?