Can't upload images previously taken on Mobile device

Bug #1794724 reported by Alec Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Cecilia Vela Gurovic
18.04
Fix Released
Medium
Unassigned
18.10
Fix Released
Medium
Cecilia Vela Gurovic

Bug Description

Hi All,

After upgrading from 15.04 to 18.04 a fair amount of previous students have complained that they can no longer upload images when using Mahara from their mobile device. (Web, not app).

Typically when uploading an image using image block, students would be prompted to choose if they wanted to capture an image or upload from their Gallery. This option seems to have disappeared and now opens camera without any prompt.

I've managed to circumvent it slightly by instructing students to insert a Text block and from there insert an image from the Word Processing bar as a temporary measure.

I tested on demo.mahara and this is persistent here also.

# To replicate: (tested on iOS and Android)
- Log into mahara on Smart phone
- Open a page and click edit
- Insert an image block
- Select 'Choose image'

Revision history for this message
Alec Young (fc.alecyoung) wrote :

Should clarify.
Students can upload an image from the camera but as their courses are very visual and evidence based, they tend to use smartphones to capture images throughout the process then upload them.

This means they can't select the images they have previously taken and would be forced to upload images during their evidence gathering (for some courses this would not be possible)

Revision history for this message
Cecilia Vela Gurovic (ceciliavg) wrote :

Hi Alec,

Thanks for reporting this. Unfortunately I wasn't able to replicate the issue. I tried with Android 7 - Chrome 69 and Firefox 60 but I still can choose to upload a picture on an image block either by taking a picture with the camera or choosing from the phone's gallery.
The steps I used for testing:

Log in on demo.mahara.org website
Edit a page
Add an image block
On the configuration of the block:
 Expand "Image" section
 Click on "Browse" to choose an image file
 Then I see options to upload an image from the camera or from documents, this last one lets me choose an image from my phone's gallery.

To make sure what the issue is, could you upload a screen cast of the steps you follow along with the operating system version and browser you're using?

Changed in mahara:
status: New → Incomplete
Revision history for this message
Alec Young (fc.alecyoung) wrote :

Hi Kristina,

Steps below:

- Log into mahara on Smart phone
- Open a page and click edit
- Insert an image block
- Select 'Choose image'

Instead of being promted, camera is opened, this was confirmed by a student using an iPhone X and Safari,

Video captured using OnePlus 5T and Chrome,
Android 8.1 - Oreo

Revision history for this message
Alec Young (fc.alecyoung) wrote :

Second one showing the same steps but using the Text block and adding an image this way, same details as above

Changed in mahara:
milestone: none → 18.10.0
status: Incomplete → In Progress
assignee: nobody → Cecilia Vela Gurovic (ceciliavg)
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/9213

Revision history for this message
Cecilia Vela Gurovic (ceciliavg) wrote :

Hi Alec,
I made a patch for this issue and the link is on comment#5.
Please try it and see if it fixes the problem for the iphones and ipads.

Thanks
Cecilia

no longer affects: mahara/19.04
Revision history for this message
Alec Young (fc.alecyoung) wrote :

Hi Kristina,

I can confirm that a student using an iPhone 6S can now see the File picker,

Issue still persistent on iPad (iPad (6th Generation) Wi-Fi MR7F2B/A) and Android (OnePlus 5T - Android 8.1 Oreo)

Alec

Revision history for this message
Cecilia Vela Gurovic (ceciliavg) wrote :

Hi Alec,

In the Android video I don't see that you have a problem. When clicking the 'Choose files' button there are options: Camera and Files. I'm guessing the option Files would let you choose from the gallery of the phone.

For the iPad, is it still the same issue as before? Is it still only opening the camera or is it now only allowing to upload from gallery?

Regards,
Cecilia

Revision history for this message
Alec Young (fc.alecyoung) wrote :

Hi Cecilia,

Apologies for the misunderstanding,

I attached two videos to two seperate comments (could only upload one per comment).

Video 1 - 'Using Image Block' is attached to comment #3.
This shows the image block opening the camera straight away rather than asking if the user wants to view file browser

Video 2 - 'textBlock.m2v' is attached to comment #4
This shows the text block, making use of the upload image facility here. This option does allow students to browse their phones but is a different instruction than what they are given at induction.

This is still persistent with Android and iPads, still opening the camera rather than allowing to upload from the Gallery.

Regards,
Alec

Revision history for this message
Steven (stevens-q) wrote :

Bug Summary: After upgrading from 15.04 to 18.04 a fair amount of previous students have complained that they can no longer upload images when using Mahara from their mobile device. (Web, not app).

===========================================

Environment tested: Master https://master-mahara.catalystdemo.net.nz/
Browser tested: iPad Air 2 v12.0.1 (6th Gen)

Preconditions:
1. Authenticated user exists
2. User is using
iPad Air 2 mobile tablet device

Test Steps:
1. Log into Mahara u
sing iPad Air 2 mobile tablet device
2. Open a page and click edit
3. Insert an image block
4. Select 'Choose image'

Expected result: User should see options to add an image by taking a photo using device camera, a saved image stored on the device or browse icloud for a saved image
Actual result: As above

Catalyst QA Approved ✔

Revision history for this message
Cecilia Vela Gurovic (ceciliavg) wrote :

We tested on an iPad Air 2 mobile tablet device (test described on comment #10) and recorded the video attached. Both image and text blocks give the option to upload from files and open the camera to take a picture.

We also tested on Android mobile phone version 7. In this case the text block is working as expected allowing both actions. The image block still needs to be fixed.

Revision history for this message
Steven (stevens-q) wrote :

======================
Upload images to image block
======================
1. iPhone 6

Summary: selecting the choose file button auto selects the Camera option (No video)
--- a. taking image with camera ✔ Only option available
--- b. selecting image from camera library ✘ this selection is not available
--- c. selecting images from iCloud ✘ this selection is not available
--- d. selecting pre saved image from Mahara account files (video files are not displayed) ✔

2. iPad Air 2 (6th Gen)

Summary: selecting the choose file button auto selects the Camera option (No video)
--- a. taking image with camera ✔ Only option available
--- b. selecting image from camera library ✘ this selection is not available
--- c. selecting images from iCloud ✘ this selection is not available
--- d. selecting pre saved image from Mahara account files (video files are not displayed) ✔

3. MS Surface Pro 10 - Edge v 41.1

Summary: selecting the choose file button triggers a file manager popup (user cannot take a photo)
--- a. taking image with camera ✘ This selection is not available
--- b. selecting image from camera library ✔
--- c. selecting pre saved image from Mahara account files ✔

4. Android 7.1.1 Moto Mobile phone - chrome browser

Summary: selecting the choose file button auto selects the Camera option (No video)
--- a. taking image with camera ✔
--- b. selecting image from camera library ✘ selection is not available
--- c. selecting pre saved image from Mahara account files ✔

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/9213
Committed: https://git.mahara.org/mahara/mahara/commit/497988388fe23ee0b4899858e4fa10ce4fade1b2
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 497988388fe23ee0b4899858e4fa10ce4fade1b2
Author: Cecilia Vela Gurovic <email address hidden>
Date: Thu Oct 11 13:58:35 2018 +1300

Bug 1794724: Make input capture default to implementation-specific state

The specification for this attribute has been
changing and is not using the 'camera' value anymore

1. Have the same response in both the image button
in the tinymce editor (text block) and the image block
when selecting the image to upload.
2. Dont assign a value to capture attribute since
'The missing value default is the implementation-specific state'

behatnotneeded
Change-Id: Ib0a6203d6cee1b05968558c2142b7f6d10ffaae1

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "18.10_STABLE" branch: https://reviews.mahara.org/9265

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/9265
Committed: https://git.mahara.org/mahara/mahara/commit/af34a76884bed9af59c2f77b41d56c09ec5e24d4
Submitter: Robert Lyon (<email address hidden>)
Branch: 18.10_STABLE

commit af34a76884bed9af59c2f77b41d56c09ec5e24d4
Author: Cecilia Vela Gurovic <email address hidden>
Date: Thu Oct 11 13:58:35 2018 +1300

Bug 1794724: Make input capture default to implementation-specific state

The specification for this attribute has been
changing and is not using the 'camera' value anymore

1. Have the same response in both the image button
in the tinymce editor (text block) and the image block
when selecting the image to upload.
2. Dont assign a value to capture attribute since
'The missing value default is the implementation-specific state'

behatnotneeded
Change-Id: Ib0a6203d6cee1b05968558c2142b7f6d10ffaae1
(cherry picked from commit 497988388fe23ee0b4899858e4fa10ce4fade1b2)

Revision history for this message
Robert Lyon (robertl-9) wrote :

As we have set the uploader in image block to use browser/OS default for capture it is beyond the scope of Mahara to make this decision

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "18.04_STABLE" branch: https://reviews.mahara.org/9266

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/9266
Committed: https://git.mahara.org/mahara/mahara/commit/97db7ef8406fb68681b59da8d1323884e146f847
Submitter: Robert Lyon (<email address hidden>)
Branch: 18.04_STABLE

commit 97db7ef8406fb68681b59da8d1323884e146f847
Author: Cecilia Vela Gurovic <email address hidden>
Date: Thu Oct 11 13:58:35 2018 +1300

Bug 1794724: Make input capture default to implementation-specific state

The specification for this attribute has been
changing and is not using the 'camera' value anymore

1. Have the same response in both the image button
in the tinymce editor (text block) and the image block
when selecting the image to upload.
2. Dont assign a value to capture attribute since
'The missing value default is the implementation-specific state'

behatnotneeded
Change-Id: Ib0a6203d6cee1b05968558c2142b7f6d10ffaae1
(cherry picked from commit 497988388fe23ee0b4899858e4fa10ce4fade1b2)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.