App-Inventor-Gallery icon indicating copy to clipboard operation
App-Inventor-Gallery copied to clipboard

Upload fails on current Safari (OS X)

Open mijoda opened this issue 13 years ago • 5 comments

I cannot upload apps using the current Safari on Mac OS X. Details:

I'm on http://app-inventor-gallery.appspot.com/ . When I attempt to upload image 1, after choosing the file, I get an error popup with the URL and the message "Your browser does not support the required functionality. Please use a recent version of Chrome, Firefox, or Safari.". Attempting to upload a source or application file yields the same message.

The files are definitely not uploaded, because when I hit OK to complete the "Add New Application" process, I get the error popup "Async(undefined) exception: Application error 4: Missing required attributes: image1, source"

I have the latest Safari, 5.1, on Mac OS 10.6.8. Uploading works fine on Firefox on the same machine.

mijoda avatar Oct 05 '11 19:10 mijoda

On Wed, Oct 5, 2011 at 15:38, mijoda < [email protected]>wrote:

I cannot upload apps using the current Safari on Mac OS X. Details:

I'm on http://app-inventor-gallery.appspot.com/ . When I attempt to upload image 1, after choosing the file, I get an error popup with the URL and the message "Your browser does not support the required functionality. Please use a recent version of Chrome, Firefox, or Safari.". Attempting to upload a source or application file yields the same message.

The files are definitely not uploaded, because when I hit OK to complete the "Add New Application" process, I get the error popup "Async(undefined) exception: Application error 4: Missing required attributes: image1, source"

I have the latest Safari, 5.1, on Mac OS 10.6.8. Uploading works fine on Firefox on the same machine.

This is a browser issue. My research indicated that the FileReader object was available on all of the modern browsers. I don't have Mac, though, so have tested it only with Firefox and Chrome. We'll have to look into what is required to get it working on Safari. We certainly do want to support that browser.

Derrell

derrell avatar Oct 05 '11 20:10 derrell

According to current research, it's supposed to work. If Safari has a debugger with which you can execute arbitrary JavaScript commands, please load the Gallery, and from the debugger, try:

var x = new window.FileReader()

Does it get back an object?

derrell avatar Oct 05 '11 20:10 derrell

It has a firebug-like debugger like that of (identical to?) Chrome. It didn't work, error message is:

"'undefined' is not a constructor (evaluating 'new window.FileReader()')"

mijoda avatar Oct 05 '11 20:10 mijoda

FileReader, supported in Chrome, FireFox, and Opera for some time, is not supported in Safari or IE, according to this:

http://caniuse.com/filereader

Maybe something here is relevant? No clue if it could be worked into Qooxdoo.

https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills

mijoda avatar Oct 05 '11 21:10 mijoda

On Wed, Oct 5, 2011 at 17:06, mijoda < [email protected]>wrote:

FileReader, supported in Chrome, FireFox, and Opera for some time, is not supported in Safari or IE, according to this:

http://caniuse.com/filereader

Maybe something here is relevant? No clue if it could be worked into Qooxdoo.

https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills

Ok, right from the mouth of the monster... It's implemented internally, but not yet bound to the API. https://bugs.webkit.org/show_bug.cgi?id=32624

derrell avatar Oct 05 '11 21:10 derrell