Android auto-upload keeps uploading when deleting on the server

Thanks.

Nextcloud version: 26.0.1
Operating system and version: Nextcloud instance: Debian via docker (image nextcloud:fpm), client: Android 12 / LineageOS 19.1
Apache or nginx version: nginx 1.23.4
PHP version: 8.1.18

The issue you are facing:
I use auto-upload on my Android smartphone to send photos to my Nextcloud instance.
Once I’ve got the files on the server, I like to move them manually to a better-suited location. But the Android app keeps re-uploading when it notices that the files on the server are gone. I do want to keep the files on the smartphone.
Is it possible to tell the Android app to upload files just once?

Is this the first time you’ve seen this error? N:

Steps to replicate it: set up auto upload, wait for files to be uploaded, delete them on the server, see the files getting uploaded every time they are deleted from the target directory

The output of your Nextcloud log in Admin > Logging:
Nothing relevant to my issue about auto-uploads.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'nextcloud_redis',
    'password' => 'xxxxxxxxxxxxxxxxxxxx',
    'port' => 6379,
  ),
  'enable_previews' => true,
  'htaccess.RewriteBase' => '/',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'xxxxxxxxxxxxxxxxxxxx',
  'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxx/9',
  'secret' => 'xxxxxxxxxxxxxxxxxxxx',
  'trusted_proxies' => 
  array (
    0 => 'letsencrypt',
  ),
  'trusted_domains' => 
  array (
    0 => 'xxxxxxxxxxxxxxxxxxxx',
  ),
  'overwriteprotocol' => 'https',
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '26.0.1.1',
  'overwrite.cli.url' => 'https://xxxxxxxxxxxxxxxxxxxx',
  'dbname' => 'nextcloud',
  'dbhost' => 'nextcloud_db',
  'dbport' => '',
  'dbtableprefix' => '',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xxxxxxxxxxxxxxxxxxxx',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'xxxxxxxxxxxxxxxxxxxx',
  'mail_domain' => 'gmail.com',
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpname' => 'xxxxxxxxxxxxxxxxxxxx@gmail.com',
  'mail_smtppassword' => 'xxxxxxxxxxxxxxxxxxxx',
  'loglevel' => 2,
  'maintenance' => false,
  'theme' => '',
  'app_install_overwrite' => 
  array (
    0 => 'richdocuments',
  ),
);

The output of your Apache/nginx/system log in /var/log/____:
Nothing relevant to my issue about auto-uploads.

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
Nothing relevant to my issue about auto-uploads.

Hi @gogogo,
You are missing the required support template. Please fill this form out and edit into your post.

This will give us the technical info and logs needed to help you! Thanks.

Edited, thank you.

1 Like

Yes, under auto-upload settings on your phone you can unselect folders you not longer wish to sync from the server. This will stop them from syncing back to your phone, but will also not delete anything.

Thanks. But this is not what I want. I want files for synced folders to be uploaded once only, I do not want the Nextcloud Android app to re-upload already-uploaded files that have been deleted remotely.

If you unsync the folders in client settings they will cease syncing from the server to your device.

So, upload and then unselect the folder in settings.

No. This is not what I want.

I want a folder to be synced: I want new items on the phone to be uploaded onto my Nextcloud instance. I don’t want erased remote files to be re-synced. I want new files on the phone to be sent.

Basically, I want a sync, and I want Nextcloud to keep track of what’s been uploaded. If file has been uploaded before, do not process it.

Thank you though :slight_smile: