[Owncloud] Broken fileupload on IE

Thomas Tanghus thomas at tanghus.net
Wed May 16 11:33:39 UTC 2012


On Wednesday 16 May 2012 13:12 Robin Appelman wrote:
> On Wednesday 16 May 2012 13:03:34 Thomas Tanghus wrote:
> > On Wednesday 16 May 2012 12:33 Arthur Schiwon wrote:
> > > Hey,
> > > 
> > > in OC 4 file upload is broken on IE (at least for IE 8 and 9), despite
> > > it has worked on OC 3. This is somewhat critical unfortunately.
> > > 
> > > IE fires an JavaScript error: "Access denied".
> > > 
> > > It occurs between when this is triggered:
> > > $(this).parent().children('.file_upload_start').trigger('click');
> > > (in apps/files/js/files.js)
> > > 
> > > file_upload_start is the file input element. IE is very strict about
> > > this type of element and hardly permits JS interaction with that.
> > > 
> > > OC 3 does not differ much regarding HTML structure. However, using IE
> > > the cited line is not being triggered. Confusingly, commenting out that
> > > element makes it unusable.
> > > 
> > > I am pretty much dark with that. Does someone of you have an idea?
> > 
> > This will probably also render profile picture useless in Contacts. I use
> > the same technique: $('#file_upload_start').trigger('click');
> > 
> > I don't have access to IE though, so I can't test it.
> 
> If I recal correctly the old version works because the file dialog is placed
> on top of the visual button and made fully transparent, thus the user
> clicks on the file dialog instead of the button.

Ah, I was wondering about that in the stylesheet :-) Hmm, I will see if I can 
make a hack to do that.

-- 
Med venlig hilsen / Best Regards

Thomas Tanghus



More information about the Owncloud mailing list