AnantLabs / ocupload

Automatically exported from code.google.com/p/ocupload
0 stars 0 forks source link

Not working in Google Chrome #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open the demonstration page
2. Click on the "Click here to upload file" link

What is the expected output? What do you see instead?
The script should open the "browse file..." dialogue, but that doesn't happen

What version of the product are you using? On what operating system?
The version used on the demo page, OS is Win XP, Browser is Google's Chromium

Please provide any additional information below.

Original issue reported on code.google.com by l00cas.g...@gmail.com on 16 Sep 2008 at 2:14

GoogleCodeExporter commented 9 years ago
It works for me on Google Chrome

Original comment by wastemas...@gmail.com on 1 Nov 2008 at 4:40

GoogleCodeExporter commented 9 years ago
Please, try to fix this problem...
Same on safari...

Original comment by costanti...@alice.it on 25 Jun 2009 at 2:37

GoogleCodeExporter commented 9 years ago
How you make it work?!??!?!

You give some special Content-Type on hedears??!?!?

Original comment by costanti...@alice.it on 25 Jun 2009 at 2:38

GoogleCodeExporter commented 9 years ago
Well, I have checked it, its not working in Chrome (dev), IE7 or Opera(10 beta)
Why? I don't know, but it seems not to work on older FF (2.XX) too.

Original comment by anisre...@gmail.com on 11 Jul 2009 at 12:02

GoogleCodeExporter commented 9 years ago
Works ok in chrome when you don't use <button type="button">Upload</button>
Works when you use normal link <a id="upload_link" href="#">upload image</a>

Original comment by vectorvend on 15 Feb 2010 at 5:07

GoogleCodeExporter commented 9 years ago
I've got it to work in Chrome with <button> tag by adding a line to the script.

After it creates the input object, just add the following:
element.click(function() { input.click() });

The problem is sometimes the file element "overlay" doesn't sit right on the 
button object. However the click() method works in Chrome on the file element, 
bringing up the dialog box. So whether the user clicks the file element or the 
button element, it will work.

I think this should be added to the standard code, as it's a useful fallback.

Original comment by lectroid...@yahoo.com.au on 10 Jul 2011 at 2:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
how did you make this work? i tried everything you mentioned above but it does 
not work in mine :( 

Original comment by eddelda...@gmail.com on 17 Jul 2012 at 5:06

GoogleCodeExporter commented 9 years ago
adding the element.click(function() { input.click() }); before it creates the 
input object worked for me :D thanks alot!

Original comment by webmaste...@gmail.com on 28 Oct 2014 at 1:28