Ios: auto upload created and modified date get set to upload date/time

Created on 3 Jun 2017  路  35Comments  路  Source: nextcloud/ios

while manual upload seems to preserve created and modified

for me at least it would feel natural to have auto upload preserve dates as well

cheers

bug

All 35 comments

Hi @tzapu ... where is the issue ? I don't understand

hi,
i would expect all my files to keep their created and modified time/date
it messes up all file views based on created/modified, it also seems really odd that some upload methods preserve those file attributes while others change them..
also, most of my files appear under today in the ios app after being uploaded, although they strech a few years. seems non intuitive at all.

hello,

will this be considered or how it is now is how it will remain?

cheers

@marinofaggiana any chance you could chime in on this? sorry to keep pestering you about it, but at least to me it is something that stops me uploading all the family pics

thank you very much for everything

screenshot 2017-06-29 14 47 30

a 2012 photo should really not show up as created today

mmm .. @jancborchardt .. for you ? now the file name is detect from creationDate of record on Photo, this date derive from EXIF or iOS creation on your memory ...

@mario Android ? as it does ?

a couple of examples:

  • dropbox camera upload for instance preserves created/modified
  • macOS Image Capture app preserves dates

as we (preserve on FileName)

yes, filename is ok, but dropbox and all preserve mtime and ctime as well

dropbox camera upload folder
screenshot 2017-06-29 16 14 32

which makes sense to me
thanks

sorry but this is not a iOS problem ...

You can set last modified time however ...

@marinofaggiana should i report this to main nextcloud repo then? thanks
@mario i m not sure i understand what i need to do

@tzapu was talking to @marinofaggiana :)

guys, sorry to keep pushing this
is it being considered? do i need to post it somewhere else? what do i need to do to make this happen?
am i flogging a dead horse? 馃槃

cheers

The issue seems only half fixed. I have seen all images seem to have the correct date, but all mp4 files have the upload date. Client is 2.17.5 on iphone.

i've just tried again with 2.17.6.00008 and modified/created are still set to current time/date

Same issue here I've been using version 2.18.0 over a longer period (e.g. vacation) without internet access. Once the device was back to a location with Wifi all files were uploaded and named with the current date. Hence, all photos are now named incorrectly and completely out of order.

Files uploaded should be named after the date taken. I don't see case were the upload date is of any relevance.

@binarybucks the filename take the creationDate of Asset ... why is incorrectly ?

@marinofaggiana can you tell me where uploads happen? I can fix this, at least for mtime and ctime preservation.

@marinofaggiana I don't care much about this. What I'm asking is where is the PUT method for uploading the file itself? I need to set a header then the MTime will be preserved. Also, for filedate I'd use modifiedDate since creationDate isn't always reliable.

@marinofaggiana fix could be here, please test :)

https://github.com/nextcloud/ios/pull/388

The question is more, why are you changing the file name from iphone. Why not uploading as is? Date is inside meta data and the file date should also be correct. Renaming the file is not needed.

@marinofaggiana you're right, they're indeed named correctly after the date they were taken. The gallery view in the app just sorted them wrong.

ok @mario the Header works but remember :

long dateFileCreation = [asset.creationDate timeIntervalSince1970];

witkout * 1000

Thanks

Pleaaase merge this, I鈥檓 switching from Dropbox and this issue is a big no-go for me and I think other people too :(

@LuckyLuke75 this issue is already fixed.... where you are problem ?

hi, in what version, last i tested, some time ago using the beta version in october, it wasn't ...

@marinofaggiana Any update ?

2.19.1 (I think ... ) @LuckyLuke75 update ?

I've checked 2.19.3 and the bug is still here, maybe it was reintroduced in 2.19.2 ?
@rakekniven could you check this one maybe ?

Android v 3.12.1 RC1 and this is happening with files in my Auto upload.

Edit: Apologies just realised this is in IOS section.

This bug is still present in v3.0.7 and it is pretty annoying. Are there any steps planned to fix this soon? I just uploaded 3000 images and the image order on the nextcloud web interface is completely messed up.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AxelGard picture AxelGard  路  4Comments

helmut72 picture helmut72  路  4Comments

koarlmichael picture koarlmichael  路  3Comments

sakthi-d picture sakthi-d  路  4Comments

MarkusKepert picture MarkusKepert  路  4Comments