Closed Bug 1511839 Opened 2 years ago Closed 1 year ago
HTML upload from Camera yields 0-length file on Moto phones
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0 Steps to reproduce: Using a Moto G5 Plus (Nougat), G6 Plus (Oreo) (or likely other recent Moto phones) go to http://tln.rqa-services.com/ffmotobug and click the browse button. Select the Camera as the source. Take any picture and hit Upload. You will see that the uploaded file is 0-bytes long. This is reproducible across different sites and implementations. It only happens from Camera sources, and as far as I know, only on Moto phones. However, these same sites work using a Camera source on Chrome or Opera. The sites also work under Firefox with the Camera on a Samsung Galaxy 7 (Nougat) or LG G4 (Marshmallow). So this seems very specific to using Camera sources on Moto phones under Firefox, and not dependent on Android version. Actual results: HTML forms with input type="file" upload/POST 0-byte files on submit when using a Camera source on (at least some) Moto phones. Using the Gallery or other file sources for the upload works as expected. The file name, and MIME type are correctly uploaded. Based on the speed of the page response it appears the file data is never being uploaded from the phone when the server reports 0 length files. Expected results: The image content from the camera capture should have been uploaded to the server.
Moto G4 Play (Android 6.0.1), too.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → Android
Hardware: Unspecified → All
Version: Firefox 63 → unspecified
Environment: Device: Motorola Nexus 6 (Android 7.1.1) Build: Nightly 65.0a1 (2018-12-04), Release 63.0.2, Beta 64.0b15 I was not able to reproduce the issue, the page displayed the picture`s size. Unfortunately, we do not have another Motorola device available.
The Nexus 6 is 2 years older than the Play G4 (earliest model confirmed to have the issue). Also, as a Nexus phone it would be running pure Android rather than the Moto Camera 2 app. Either of which may well be essential to replicating the issue. If there's any further info I can provide or tests I can run that would help, I'd be happy to.
Priority: -- → P1
Assignee: nobody → petru.lingurar
Status: NEW → ASSIGNED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.