Skip to content

How to preserve timestamp of uploaded file via FTP?

I copy photos from my laptop to my server via FTP. The thing is every uploaded files' timestamp is the time I copied not I took.

For example,

  • I have taken the photo 2017-01-01 12:00

  • timestamp of the file in my laptop is the same, 2017-01-01 12:00

  • and I copied the file in 2017-01-10 13:00,

  • then timestamp of the uploaded file is 2017-01-10 13:00

How can I preserve the timestamp of uploaded file the same as the source file?

Edited 26 Jan 2017. We only hold this version.

0 points7 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
0 · 100% up
Kind
Text
ID
5pp415

Author

22
posts
45
comments
0
media
View profile

7 comments

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.