-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE9 with shim: SCRIPT28: Out of stack space #58
Comments
Could you provide more info please: What Operating System? Can you find out your installed Flash version and see if the problem exists in IE8 compatibility mode. What's the file size/type/name you are trying to upload? |
Apologies. I hastily filed this issue without due troubleshooting. I am testing with IE10 on Windows 7 x64 in IE9 compatibility mode (but I've had user reports of failure in the real IE9). I didn't have Flash installed, so that's why it failed. After installing it, the demo works correctly. Perhaps FileAPI.min.js could give better feedback when Flash is not available. Other than that, there's really no issue here. |
OK, I will try to add a flash detection code for the next release so it would show an appropriate message if flash is not installed. |
You will see a warning if flash is not supported in version 1.1.10 |
SCRIPT28: Out of stack space EDIT-1 : ok, by curiosity I reordered the script (putting FileAPI after the shim) <script src="/lib/angular-file-upload/angular-file-upload-shim.js" type="text/javascript"></script> <script src="/lib/angular-file-upload/FileAPI.js" type="text/javascript"></script>This took away the "Out of stack space" issue, but brought another error Which I solved by including jQuery before the angular-file-upload-shim.js tag: <script src="http://code.jquery.com/jquery-1.10.1.js"></script> <script src="/lib/angular-file-upload/angular-file-upload-shim.js" type="text/javascript"></script> <script src="/lib/angular-file-upload/FileAPI.js" type="text/javascript"></script>but this popped up : Unable to get value of the property 'ownerDocument': object is null or undefined I guess this is hopeless... I cannot count the hours I spent trying to make this work on IE9... Edit-1 : Now, ... , something sent to the server, but not the way I want. I guess that I'll have to tune the POST request (it seems that the body is { callback: 'fileapi139195079660810', file: '[object Object]' }, in which file is only that string '[object Object]' but not the data I'm expecting to receive (the file). |
You don't need to include FileAPI.js in your html. It is probably library conflict since angular-file-upload uses specific version of FileAPI.js.
That's all you need. You don't need jQuery for angular-file-upload. Also make sure when your page is loaded in IE9 when you right click on the browse button it should show the Flash context menu. And the demo page is always a proof whether it is an issue in your code or the angular-file-upload plugin. |
ok, now I'm using the JS fom the Dist folder but still :
|
Does the demo page work? what version of angular-file-upload are you using? |
yes it does. I'm using the version available in the dist rep. The button is not flash. |
The only way I can help you is if you post your code here since the demo page works it's a problem in the code. |
@FredJacquemin:: Hmm I got the same error as you, but in my case, I hide the input-file using css and use a label (with for-id) to open the input. It open the dialog, but then gave me this error during upload:
I removed the css and the label, and just use the real input-file, voila, works. I'm not sure which code that cause this error, but I'm done debugging it ( well.. at least for today ) :) |
when you get this error: SCRIPT28: Out of stack space it is most probably because Flash is not loaded for the input. You shouldn't hide the input and the user have to actually click on the input itself because for IE8-9 it is replaced with flash file upload and the only way to open it's dialog is to click on the flash object. So don't overlay the input with another element unless the input is on top. |
@FredJacquemin and others with problems finding Flash: it's possible that the Flash object is created, just not on top of the Browse button. In your console, search for HTML element I'm having this issue now (object not created as child of input), but possibly for different reasons than you. |
@andreipopovici I face the very same problem. The |
Never mind. I figured out I had all input elements twice. Once inside a div that had |
Closed but still relevant I think: |
SCRIPT5007: Unable to get value of the property 'ownerDocument': object is null or undefined |
@remolueoend IE9 uses Flash polyfill and when you right click on the browse button it should show the Flash content menu. If it doesn't then there is a problem with the css. |
I have updated the code related to css and input file element positioning at version 1.6.0. |
In IE9, I get the following on the demo page.
The text was updated successfully, but these errors were encountered: