android icon indicating copy to clipboard operation
android copied to clipboard

Files being renamed upon "share to" upload in 34.1.0

Open neonknight opened this issue 4 months ago • 3 comments

⚠️ Before posting ⚠️

  • [x] This is a bug, not a question or an enhancement.
  • [x] I've searched for similar issues and didn't find a duplicate.
  • [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • [x] I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

Steps to reproduce:

  • Open file/image in e.g. gallery app
  • check the file name
  • click "share to" button
  • select Nextcloud app
  • check upload file name
Image

Expected behaviour

File name should remain unaltered and original file name must be preserved. The issue occurs since app was updated yesterday, Previous version of the app allowed upload with original file name.

Image

Actual behaviour

original file name was e.g. IMG_20260724_095541.jpg (date/time based format). In the upload dialog Nextcloud App suggest file name such as 1784890751676.jpg (looks like timestamp format).

Image

Android version

Xiaomi HyperOS 3.0.304 / Android 16 with security update 2026-06-01

Device brand and model

Redmit Note 14 Pro+ 5G

Stock or custom OS?

Stock

Nextcloud android app version

34.1.0

Nextcloud server version

33.0.7

Using a reverse proxy?

No

Android logs

adb logcat --pid=$(adb shell pidof -s 'com.nextcloud.client') produces no log output during this operation.

Server error logs

n/a (issue is client side only and occurs before upload)

Additional information

No response

neonknight avatar Jul 24 '26 08:07 neonknight

Hi! I'd like to work on this issue. Could it be assigned to me?

Rudraksh2605 avatar Aug 01 '26 08:08 Rudraksh2605

Can confirm for Nextcloud 34.1.0@Poco F7, Server 34.0.3

What's more: If you upload images with "share to", it also alters the time stamp of the file and sets it to the moment the file was uploaded. If you upload images with the Nextcloud Android app, the original time stamps are preserved (as they should).

Here is a screenshot: Image These are the same three image files. The top 3 have been uploaded with "share to Nextcloud". The bottom 3 have been uploaded with the Nextcloud Android app. Notice the different file names and time stamps.

NewKidOnTheBlock avatar Aug 21 '26 06:08 NewKidOnTheBlock

I have exactly the same issue.

When I upload older photos from the Android Gallery using Share → Nextcloud, the file modification date gets changed to the upload time instead of keeping the original one.

So a photo from a few months ago shows up as modified a few minutes ago.

drebus avatar Sep 17 '26 11:09 drebus