owncloud / android

:phone: The ownCloud Android App
GNU General Public License v2.0
3.76k stars 3.09k forks source link

Checking the available space when taking a photo from the camera #4421

Open Aitorbp opened 3 weeks ago

Aitorbp commented 3 weeks ago

Is your feature request related to a problem? Please describe. When we are going to upload a photo from the camera, before performing this operation the application checks if there is space on the device's sd-card (Device Explorer).

This check is done in the getUsableSpace() function, which compares the bytes available in this path with the bytes of the photo taken.

We really don't know exactly why this is being done in the code and the Scope Storage is not being used, which is where we think the logic should go.

The development to check the available space is in the following class: CheckAvailableSpaceTask.

It needs some research.

TASKS