New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 786884 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Feature

Blocking:
issue 773742



Sign in to add a comment

Files app: Backup photos without local snapshot files.

Project Member Reported by fukino@chromium.org, Nov 20 2017

Issue description

Current Files app import photos by following steps:
1) Copy photos from DCIM folder in external device to local storage. (copy)
2) Upload photos in local storage to Google Drive. (sync)

If we skip 1) by uploading photos directly from DCIM folder to Google Drive,
we can expect some advantages:
- It's faster since we skip the copy step.
- It won't fill device storage by cached files.
- We'll manage less internal state.

The approach will be something like this:
1) Create a list of files which are not in Drive (same as the current behavior)
2) Send the file list to backend via new fileManagerPrivate API
3) The backend upload the files to Drive directly, and notify the progress via the callback passed in step 2.

When device is unplugged (resulting in read error) or offline, you can simply call error callback and forget everything.
The next try will start from 1) and the already-copied files will be skipped.
 
Blocking: 773742

Comment 2 by sashab@chromium.org, Feb 22 2018

Components: Platform>Apps>FileManager
Labels: CrOS-FilesApp-DriveSync

Comment 3 by sashab@chromium.org, Feb 23 2018

Labels: -CrOS-FilesApp-DriveSync CrOS-FilesApp-CloudImport

Comment 4 by sashab@chromium.org, Feb 28 2018

Labels: -CrOS-FilesApp-CloudImport CrOSFilesFeature-CloudImport

Comment 5 by sashab@chromium.org, May 26 2018

Labels: CrOSFilesFeature-DriveSync

Comment 6 by sashab@chromium.org, May 26 2018

Components: -Platform>Apps>FileManager>Drive
Labels: -CrOSFilesFeature-DriveSync

Sign in to add a comment