derrell / App-Inventor-Gallery

App Inventor Gallery
20 stars 17 forks source link

alpha003 release won't accept APK #215

Closed fgmart-zz closed 12 years ago

fgmart-zz commented 12 years ago

release complains that APK is not the right format and won't upload.

derrell commented 12 years ago

On Sat, Dec 3, 2011 at 17:42, Fred Martin < reply@reply.github.com

wrote:

release complains that APK is not the right format and won't upload.

Please post the complete error message that you get, the browser and its version, and operating system. This works fine in my environment, so there's something different for you.

fgmart-zz commented 12 years ago

The file you selected is not a valid '.apk' file(found data:)

when trying to attach an APK file Ubuntu 10.04 Chrome 15.0.874.121

fgmart-zz commented 12 years ago

i tried again and i got:

The image you attempted to upload was 1334485 bytes, which is larger than the limit of 1048576 bytes.

i think this is related to cpuwhiz's image checks?

derrell commented 12 years ago

On Sat, Dec 3, 2011 at 20:42, Fred Martin < reply@reply.github.com

wrote:

i tried again and i got:

The image you attempted to upload was 1334485 bytes, which is larger than the limit of 1048576 bytes.

Are you trying to upload an icon or screen shot that's greater than 1MB? The current limit for images is 1MB, which should be very adequately large for any size we're going to display.

i think this is related to cpuwhiz's image checks?

Absolutely. It's doing exactly what it's supposed to.

Derrell

derrell commented 12 years ago

On Sat, Dec 3, 2011 at 20:40, Fred Martin < reply@reply.github.com

wrote:

The file you selected is not a valid '.apk' file(found data:)

when trying to attach an APK file Ubuntu 10.04 Chrome 15.0.874.121

I reproduced the problem. Chrome does not recognize the APK file type. Firefox does. (Which seems really strange to me, since Google produces both APK-based Android and Chrome.)

We can therefore not do the client-side verification on Chrome. I've modified the code so if no MIME type for the requested file can be read, and an APK is being specified, to issue a warning (for now; can be removed later), but allow the upload anyway.

It should work for you now.

D

derrell commented 12 years ago

On Sat, Dec 3, 2011 at 20:42, Fred Martin < reply@reply.github.com

wrote:

i tried again and i got:

The image you attempted to upload was 1334485 bytes, which is larger than the limit of 1048576 bytes.

I believe the primary problem is fixed (Chrome doesn't recognize APK files, so no longer prohibited from uploading).

I highly suspect that on this particular retry, where it says, "The image...", you accidentally clicked on one of the Image buttons, rather than on the Apk button. I don't see any way this message could appear if the Apk upload button were pressed. If you can reproduce this reliably, though, please let me know.

D

fgmart-zz commented 12 years ago

OK, when I attach the APK I get "Browser does not recognize file type. Uploading anyway."

Then it works.

Can you remove this now? Either that or add somethlng like "switch to Firefox you luser"

:)

derrell commented 12 years ago

fixed in alpha003