久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='GyhuN'></bdo><ul id='GyhuN'></ul>
  • <tfoot id='GyhuN'></tfoot>
  • <small id='GyhuN'></small><noframes id='GyhuN'>

      <i id='GyhuN'><tr id='GyhuN'><dt id='GyhuN'><q id='GyhuN'><span id='GyhuN'><b id='GyhuN'><form id='GyhuN'><ins id='GyhuN'></ins><ul id='GyhuN'></ul><sub id='GyhuN'></sub></form><legend id='GyhuN'></legend><bdo id='GyhuN'><pre id='GyhuN'><center id='GyhuN'></center></pre></bdo></b><th id='GyhuN'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='GyhuN'><tfoot id='GyhuN'></tfoot><dl id='GyhuN'><fieldset id='GyhuN'></fieldset></dl></div>

      1. <legend id='GyhuN'><style id='GyhuN'><dir id='GyhuN'><q id='GyhuN'></q></dir></style></legend>

        上傳到 FTP 時保留圖像創建日期

        Preserve image created date when uploading to FTP(上傳到 FTP 時保留圖像創建日期)

      2. <tfoot id='uu0hJ'></tfoot>

        • <bdo id='uu0hJ'></bdo><ul id='uu0hJ'></ul>

              <tbody id='uu0hJ'></tbody>
            • <legend id='uu0hJ'><style id='uu0hJ'><dir id='uu0hJ'><q id='uu0hJ'></q></dir></style></legend>
              <i id='uu0hJ'><tr id='uu0hJ'><dt id='uu0hJ'><q id='uu0hJ'><span id='uu0hJ'><b id='uu0hJ'><form id='uu0hJ'><ins id='uu0hJ'></ins><ul id='uu0hJ'></ul><sub id='uu0hJ'></sub></form><legend id='uu0hJ'></legend><bdo id='uu0hJ'><pre id='uu0hJ'><center id='uu0hJ'></center></pre></bdo></b><th id='uu0hJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uu0hJ'><tfoot id='uu0hJ'></tfoot><dl id='uu0hJ'><fieldset id='uu0hJ'></fieldset></dl></div>

                • <small id='uu0hJ'></small><noframes id='uu0hJ'>

                  本文介紹了上傳到 FTP 時保留圖像創建日期的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  所以我正在為我的家人創建一個網站,我們可以在其中上傳我們的圖像并查看它們,但該網站的一個重要功能是按日期排序,以便例如當我的阿姨在我母親的生日和我也拍了照片,我們上傳它們將添加到同一個相冊等的圖像.

                  我意識到通過瀏覽器上傳時無法保留日期.所以我會做一個只用于上傳圖片的小程序.我有一個 FTP 服務器正在運行,但是當我上傳圖像時,日期將更改為當前日期時間.我找到了為什么這樣做的答案 所以現在我正在尋找一種在上傳到 FTP 時保留日期的方法.

                  以下是我的一些想法:

                  1. 如果程序將文件添加到 zip 文件并上傳該 zip 文件,它們將保留日期,但這意味著我必須在服務器上安裝一些東西來解壓 zip.
                  2. 上傳圖片后,程序會從原始圖片中提取創建日期,并將其添加到一個文本文件中,該文件也會上傳,但這需要服務器上的程序更改上傳的圖片創建日期.
                  3. 也許我上傳了圖片,然后從客戶端更改了上傳圖片的創建日期?

                  解決方案

                  1. 也許我上傳了圖片,然后從客戶端更改了上傳圖片的創建日期?

                  在 FTP 協議中,使用 MFMTMDTM 命令更新文件修改時間戳,或 MFCT 更新文件創建時間戳,具體取決于哪個您的 FTP 服務器支持的這些.

                  實際上沒有一個是標準化的.

                  • MFMTMFCT 在此起草:
                    https://datatracker.ietf.org/doc/html/草稿-somers-ftp-mfxx-04
                  • MDTM 在 RFC 3659 中定義為檢索文件修改時間戳,使用 MDTM 文件名 語法.但許多 FTP 服務器也支持替代(非標準)語法 MDTM 文件名時間戳(即與提議的 MFMT 相同)來更新修改時間戳.

                  盡管 .NET 框架中的本機 FTP 實現(FtpWebRequestWebClient 包裝器)不支持其中任何一個.

                  您必須使用第 3 方庫.

                  例如,WinSCP .NET 程序集會自動為任何上傳(或下載),無需任何額外代碼.

                  上傳文件的簡單示例代碼(隱式保留修改時間戳):

                  //設置會話選項SessionOptions sessionOptions = 新的 SessionOptions{協議 = Protocol.Ftp,主機名 = example.com",用戶名 = 用戶",密碼=我的密碼",};使用(會話會話 = 新會話()){//連接session.Open(sessionOptions);//上傳session.PutFiles(@"d:	ouploadimage.jpg", "/home/user/").Check();}

                  有關詳細信息,請參閱 Session.PutFiles.p>

                  最新版本的 WinSCP GUI FTP 客戶端(5.9 及更高版本)甚至可以生成 C# 代碼給你.

                  (我是 WinSCP 的作者)

                  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.

                  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. I have found the answer to why it does that so now I am looking for a way to preserve the date while uploading to FTP.

                  Here's some ideas I've had:

                  1. 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.
                  2. 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.
                  3. Maybe I upload the images and thereafter change the uploaded images created date from the client?

                  解決方案

                  1. Maybe I upload the images and thereafter change the uploaded images created date from the client?

                  In FTP protocol, use MFMT or MDTM command to update file modification timestamp, or MFCT to update file creation timestamp, depending on which of these your FTP server supports.

                  Actually none of them is standardized.

                  • The MFMT and MFCT are drafted here:
                    https://datatracker.ietf.org/doc/html/draft-somers-ftp-mfxx-04
                  • The MDTM is defined in RFC 3659 to retrieve file modification timestamp, using MDTM filename syntax. But many FTP servers support an alternative (non-standard) syntax MDTM filename timestamp (i.e. the same as proposed MFMT) to update the modification timestamp too.

                  Though the native FTP implementation in .NET framework (the FtpWebRequest or the WebClient wrapper), does not support any of these.

                  You have to use a 3rd party library.

                  For example the WinSCP .NET assembly preserves the modification timestamp automatically for any upload (or download) without any additional code.

                  A simple example code to upload a file (implicitly preserving the modification timestamp):

                  // Setup session options
                  SessionOptions sessionOptions = new SessionOptions
                  {
                      Protocol = Protocol.Ftp,
                      HostName = "example.com",
                      UserName = "user",
                      Password = "mypassword",
                  };
                  
                  using (Session session = new Session())
                  {
                      // Connect
                      session.Open(sessionOptions);
                  
                      // Upload
                      session.PutFiles(@"d:	ouploadimage.jpg", "/home/user/").Check();
                  }
                  

                  For details, see Session.PutFiles.

                  The latest version of WinSCP GUI FTP client (5.9 and newer) can even generate the C# code for you.

                  (I'm the author of WinSCP)

                  這篇關于上傳到 FTP 時保留圖像創建日期的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  What are good algorithms for vehicle license plate detection?(車牌檢測有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  Calling A Button OnClick from a function(從函數調用按鈕 OnClick)
                • <tfoot id='9OtOO'></tfoot>

                • <legend id='9OtOO'><style id='9OtOO'><dir id='9OtOO'><q id='9OtOO'></q></dir></style></legend>
                    <tbody id='9OtOO'></tbody>
                  1. <i id='9OtOO'><tr id='9OtOO'><dt id='9OtOO'><q id='9OtOO'><span id='9OtOO'><b id='9OtOO'><form id='9OtOO'><ins id='9OtOO'></ins><ul id='9OtOO'></ul><sub id='9OtOO'></sub></form><legend id='9OtOO'></legend><bdo id='9OtOO'><pre id='9OtOO'><center id='9OtOO'></center></pre></bdo></b><th id='9OtOO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='9OtOO'><tfoot id='9OtOO'></tfoot><dl id='9OtOO'><fieldset id='9OtOO'></fieldset></dl></div>

                    <small id='9OtOO'></small><noframes id='9OtOO'>

                            <bdo id='9OtOO'></bdo><ul id='9OtOO'></ul>
                            主站蜘蛛池模板: 中文字幕不卡在线观看 | 亚洲精品久久久一区二区三区 | 91婷婷韩国欧美一区二区 | 一级做a爰片久久毛片免费看 | 成人小视频在线观看 | h视频在线播放 | 视频一区二区三区中文字幕 | 国产二区三区 | 亚洲成人免费在线观看 | 欧美视频成人 | 日本一区二区高清视频 | 国产精品久久久久久亚洲调教 | 欧美一级全黄 | 亚洲欧美综合精品久久成人 | 欧美一级α片 | 免费观看一区二区三区毛片 | 日韩精品四区 | av电影手机在线看 | 久久99久久99久久 | 久在线 | 国产成人av电影 | 五月婷六月丁香 | 337p日本欧洲亚洲大胆 | 国产午夜精品一区二区三区嫩草 | 成人免费观看男女羞羞视频 | 一区二区三区国产精品 | 永久网站| 久久国产欧美日韩精品 | 久久久成人网 | 日韩成人在线电影 | 青青草av网站 | 国产伦一区二区三区四区 | 九九亚洲| 久久亚洲欧美日韩精品专区 | 国产精品a免费一区久久电影 | 亚洲黄色一区二区三区 | 超碰97人人人人人蜜桃 | 亚洲成人久久久 | 欧美成人h版在线观看 | 日本成人片在线观看 | 日韩精品一区二区三区在线观看 |