New issue
Advanced search Search tips

Issue 629067 link

Starred by 3 users

Issue metadata

Status: Duplicate
Merged: issue 574442
Owner: ----
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: ----



Sign in to add a comment

Cache never cleared when taking HTML5 photos

Reported by van.stok...@gmail.com, Jul 18 2016

Issue description

Device name: Nexus 5

From "Settings > About Chrome"
Application version: 51.0.2704.81
OS: Android 6.0.1, Nexus 5 Build/MOB30P

Problem:
When taking photos using Chrome Browser via HTML5, Chrome caches the photos (for upload) but never clears them. Eventually the phone/tablet runs out of space. Took us a long time to find out it was Google Chrome. The phone has 16GB of storage and Google Chrome was using 12GB of it. We have to periodically manually clear the Google Chrome cache.

Steps to reproduce:
(1) Use HTML5 to take photo and upload to a website
(2)
(3)

Expected result:
Cache photo and after successful upload to website, delete photo from cache.


Actual result:
Photo is cached and successfully uploaded but never deleted from cache.
Phone/Tablet runs out of space and user doesn't understand why.



 
Components: Blink>Storage>CacheStorage
Components: -Blink>Storage>CacheStorage Internals>Network>Cache
This sounds like HTTP Cache instead of CacheStorage.

Can you provide a link of a site that has this behavior?

Comment 3 by mmenke@chromium.org, Jul 25 2016

Components: -Internals>Network>Cache Internals>Media Blink>Media
The HTTP cache does not include upload data, only HTTP responses.

This sounds an issue with whatever module creates/manages temp file for upload, which is not a feature of the network stack itself.  Attaching media labels, but I have no idea where this code lives, or what the correct label for it is.
Components: -Internals>Media -Blink>Media Blink>MediaStream>ImageCapture
Could you clarify how you are taking the photo? I'm assigning this to ImageCapture because it's the best bet but it's unlikely a <video>/<audio> issue (which is what Blink>Media is for).

Comment 5 by mcasas@chromium.org, Jul 26 2016

Is this a duplicate of  https://crbug.com/574442 , van.stokes.jr@ ?
We are doing the following in a web page we wrote. We use Google Chrome on a
Nexus 5:

<html>
...
<form method="POST" action="http://www.abc.def/photo/save" accept-
charset="UTF-8" id="formPhoto" class="form-horizontal" name="formPhoto"
enctype="multipart/form-data">
<input type="image" id="takePhoto" name="takePhoto" src="img/camera_icon.png"
alt="Take Photo" width="48" height="48"/>
</form>
...
</html>

##SELECTION_END##

Comment 7 by mcasas@chromium.org, Jul 26 2016

Cc: mcasas@chromium.org qin...@chromium.org
#6: could you upload a jsfiddle showing the problem?

 https://crbug.com/574442  essentially deals with a storage
problem when using the <input> "capture" attribute [1].

[1] https://w3c.github.io/html-media-capture/#the-capture-attribute

Comment 8 by tkent@chromium.org, Jul 26 2016

Mergedinto: 574442
Status: Duplicate (was: Unconfirmed)

Comment 9 by sshru...@google.com, Nov 23 2016

Components: -Blink>MediaStream>ImageCapture Blink>ImageCapture

Sign in to add a comment