View Full Version : File Upload in Opera

10 Jun 2010, 1:25 AM

I am using latest version of Ext JS 3.2.1 version.

I have an upload file option in my application.

Its working fine in IE and Firefox, where as in Opera upload file is not working.

So,If anybody knows, please let me know.


10 Jun 2010, 1:41 AM
Can you be more specific? What exactly doesn't work?

10 Jun 2010, 3:10 AM
Hi Condor,

Thanks for the quick response.

I have used Opera version is 10.10.

I am uploading file and i need to display that in textarea.

I am able to display data into textarea in IE, Firefox, Safari and Chrome.

But in Opera the content is not displayed in textarea and it does not show any error.


10 Jun 2010, 5:19 AM
Still not enough information. What are you displaying in the textarea? And how are you retreiving this information?

10 Jun 2010, 10:13 PM

I am uploading one text file, i am reading that file and send back that content to browser using php.

Finally display that content in textarea.


10 Jun 2010, 10:41 PM
So, have you debugged?
1. Is the request with the uploaded file sent.
2. Is the server returning the correct response.
3. Is the response received on the client.

11 Jun 2010, 12:32 AM
Yes Condor, I have debugged.

Uploaded file was sent to the sever and server returning the correct response.

But the response not received on the client in opera only.

In addition to that i want to tell one more thing, While i press upload file button, it shows that "stop executing scripts on this page".

But, if i stop the execution, it does not go to further.


11 Jun 2010, 1:31 AM
"stop executing scripts on this page" usually means that a script is either executing very long or is stuck in a loop.

What exactly is your server returning in response to the file upload? Are you aware that the response must be text/html and isn't allowed to be application/json?

11 Jun 2010, 1:49 AM
I am uploading text file only and the server is returning String and that error is not coming in loading to text area.

That will come only when i upload XML file and returning JSON array .

I want to store that JSON array into Grid.

Totally i have 2 upload buttons.

1) I am uploading text file and want to display that content in textarea.

2) Upload XML File, server returns JSON Array, and store that JSON into grid.

In 1st step, i didn't get any error and not display in textarea

where as in 2nd step, i am getting that error.


11 Jun 2010, 2:39 AM
An Ext.form.BasicForm expects a {success:true} response from the server (for file uploads using Content-type:text/html), unless you defined an errorReader that handles the response differently.

What exactly is your server returning? Did you define an errorReader?

19 May 2011, 2:22 AM
The problem is the way that opera handles upload to iframe.
When iframe loads with {success: true}, opera launch onload event when dom tree is not ready.

When I set breakpoint on line which accesses dom.body.innerHTML, then upload is reported as successful (content returned by server is loaded as responseText).
When I set it one line after that, the responseText is empty.

Until now i cannot find any good workaround