FileReader icon indicating copy to clipboard operation
FileReader copied to clipboard

Uncaught Error: Error calling method on NPObject.

Open particle6 opened this issue 12 years ago • 6 comments

Erroring on line 208: FileAPIProxy.swfObject.read(file.input, file.name, 'readAsDataURL');

I know hardly anything about flash, so it may just be something i'm over looking.

--Please help!!

particle6 avatar Oct 10 '12 18:10 particle6

I too am having this issue. Any help would be appreciated.

dwick avatar Oct 10 '12 22:10 dwick

same here..

jinlin avatar Oct 19 '12 07:10 jinlin

Please try with the latest commit (not the minified one as it is not yet updated) and tell me if you still have this issue!

AVapps avatar Oct 24 '12 13:10 AVapps

I have tried with the latest commit . but the error is still there. ["FileReader read...", null, "3.jpg", "readAsDataURL"]...It seems like file.input is null which call npObject...

jinlin avatar Nov 06 '12 23:11 jinlin

To methods readAsBinaryString, readAsText, readAsDataURL and readAsArrayBuffer is passed File object. Here's how that object looks like https://developer.mozilla.org/en-US/docs/DOM/File. There's no property called input and none of browsers I tested doesn't add this property.

Could you @Jahdrien just tell me what exactly I should have in file.input?

conradthegray avatar Feb 22 '13 12:02 conradthegray

file.input is the file input id. It's a custom property from this polyfill used to track which file input the file belongs to.

AVapps avatar Feb 22 '13 13:02 AVapps