Preserve image created date when uploading to FTP
<p>So I am making a website for my family, where we can upload our images and view them, but an important feature of the website is to sort by date so that when for example my aunt have taken pictures at my mothers birthday and I also have taken pictures and we upload the images they will be added to the same album etc.</p>

<p>I've realized that it is not possible to preserve the date, when uploading through a browser. So I will make a small program which is only used for upload pictures. I have an FTP server running but when ever I upload images the date will change to current datetime. <a href="https://superuser.com/questions/362818/where-are-last-modified-date-and-last-accessed-date-saved">I have found the answer to why it does that</a> so now I am looking for a way to preserve the date while uploading to FTP.</p>

<p>Here's some ideas I've had:</p>

<ol>
<li>If the program adds the files to a zip file and upload that zip file they will preserve the date, but that means I would have to have something on the server that unpacks the zips.</li>
<li>When the images gets uploaded the program extracts the created date from the original image and adds it to a text file which it also uploads, but that would again require a program on the server which changes the uploaded images created date.</li>
<li>Maybe I upload the images and thereafter change the uploaded images created date from the client?</li>
</ol>