ios icon indicating copy to clipboard operation
ios copied to clipboard

Nextcloud app grows in size when uploading + delete after upload

Open regulator-g opened this issue 6 years ago • 15 comments
trafficstars

Expected behaviour

iOS storage is almost full, upload photos to nextcloud and ideally have nextcloud delete them off storage after uploading. The Nextcloud app itself should not grow in size during this process

Actual behaviour

storage on iOS is almost full so I upload the photos (4GB) to Nextcloud, there is no "delete after upload" option so I will just delete the photos myself after. Time passes and uploading is complete, all photos are on nextcloud. I check device storage and now I have 4GB of photos and Nextcloud itself is 4GB in size!

I had to open nextcloud and "delete cache"

Steps to reproduce

as above, upload 4gb worth of files and watch the nextcloud app grow to that size

No offline folders were configured, no files appear in offline files, offline favourites not enabled.

iOS version

12.x

App version

2.23.8.30

Server configuration

nextcloud snap 15.0.11

iphone nextcloud

regulator-g avatar Sep 06 '19 22:09 regulator-g

hey,

I would have guessed, that it could be something like filecache remnants, but the difference in size is exactly the same as the size of the data you added and deleted. Have you checked if the photos are still accessible on your phone?

aignerat avatar Sep 09 '19 14:09 aignerat

Hi @regulator-g before, please, try with the last version in TestFlight. thanks

https://testflight.apple.com/join/GjNbfo2a

marinofaggiana avatar Sep 09 '19 15:09 marinofaggiana

Have you checked if the photos are still accessible on your phone?

I believe what happens is within the nextcloud app the photos will have a green tick indicating they are available offline? and would be stored in the cache. Although as mentioned under offline files they do not appear

Hi @regulator-g before, please, try with the last version in TestFlight. thanks

https://testflight.apple.com/join/GjNbfo2a

Hey can one of the dev team please try and replicate the issue with this testflight version as I do not have an iOS device myself

regulator-g avatar Sep 10 '19 06:09 regulator-g

there would be 3 possibilities:

  1. Nextcloud reserves the space without acutally using the space
  2. Nextcloud just shows that the space is used but it isn't
  3. Nextcloud uses the space and has the data stored on some hidden place, maybe not even useable

I think it's 1 or 2, 2 wouldn't be a critical issue

aignerat avatar Sep 10 '19 06:09 aignerat

1. Nextcloud reserves the space without acutally using the space

2. Nextcloud just shows that the space is used but it isn't

This could be true as the phone was basically full before nextcloud was installed and media uploaded

regulator-g avatar Sep 10 '19 06:09 regulator-g

I see the same problem and it makes the upload feature useless over time... or when you run out of space because you've taken too many photos. With respect to caching strategy and the comment earlier in this thread, I dont see reserving space makes any sense.

These photos in Nextcloud app makes little sense since they are available in photo application and the typical use-case is to upload to the cloud to then clear them off the local device to make more room. I would suggest making the iOS auto-upload feature exempt from local caching. Other files (and photos) outside of the destination folder cached etc.

I would also put a percentage cap on the amount Nextcloud app would cache as right now it fills up all available space on iPhone6s and other apps start to suffer and auto-offload goes nuts and starts removing apps. Sometimes, the Nextcloud app. In some cases, the size of the Nextcloud cache has filled up the phone to the point that it no longer syncs with Desktop to manually move the photos off it... the iPhone entirely unusable unless I locally delete photos off it or remove other apps to make some room, assuming I've disabled Nextcloud auto-upload before it swallows up all remaining space.

elapse2039 avatar Sep 19 '19 01:09 elapse2039

Is still not working ? Have you tried disabling local caching from here : More > Settings > Advanced > Disable local cache

PhilippeWeidmann avatar Apr 23 '20 09:04 PhilippeWeidmann

I have exactly the same problem. The setting to "disable the local cache" does not help. Deleting the cach in the app does not help, because it deletes the full upload queue. So at the moment I must say: The app for iPhone is totally useless.

gilbert-grape avatar Jul 12 '20 15:07 gilbert-grape

The problem is still occurring. While Syncing the camera roll, the IOS app uses all available storage on the device. Changing the settings mentioned above does not help. Indeed, it does delete the queue and you have to start again.

Maybe adding a feature to limit the size the the cache will help this.

manic101 avatar Apr 14 '21 05:04 manic101

Running into the same issue. Deleting the cache also kills the upload queue.

ckoehler avatar Aug 23 '21 00:08 ckoehler

I have the same issue, after using the app for a long time I got a message from the system telling me that I was running out of space. I deleted the app cause it was using around 32gb. No offline files. So in my case it was actually using the space. Installed the app again today and now when I clear the cache the data is removed. But this should be done automatically or be able to be scheduled. Not very user friendly.

john-arvid avatar Nov 11 '21 19:11 john-arvid

I worked around this by “deleting” every folder that has been successfully uploaded. It gives an option to delete the folder for real or just from cache, freeing the space.

ckoehler avatar Nov 11 '21 20:11 ckoehler

Also seeing this behavior now. Seems like clearing cache does not actually free up the space, tested on two iphones with the same outcome

nicola-zanardi avatar Nov 26 '21 13:11 nicola-zanardi

I worked around this by “deleting” every folder that has been successfully uploaded. It gives an option to delete the folder for real or just from cache, freeing the space.

This solved the issue for me. Before: image

And after: image

This is with no files saved locally (no files had a geen check mark or showed up in "offline files" folder) and cache deleted globally in the advanced section of the setting.

Someone should take a look at the global delete cache function, because something is going wrong over there that is happening correctly in the other ways to delete local cache.

jeroengui avatar May 27 '22 09:05 jeroengui

I spent 2 days on it, thought it was my nginx proxy, followed https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html thinking something needed to be done to the app itself. I was able to upload normally through the web app but just the IOS was the problem. Then I realized my iPhone was almost full in storage but I had 6gb more (and I was trying to upload a 1gb video and thought this is very weird that it wants more than 6 gb to upload). I emptied my recently deleted album (4gb worth) and was able to upload normally from there. I agree this is very non user friendly.

KhizerShareef avatar Apr 14 '24 01:04 KhizerShareef