Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2058

Allow setting uploadDate on gridfs upload file

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • GridFS

    Description

      You should be able to set the `uploadDate` field when opening a gridfs upload stream. Right now it always uses `time.Now()`. I believe you'd want to add this as a method like `options.GridFSUpload().SetUploadDate()`.

       

      The old mgo driver use to allow this iirc and either way it is useful for controlling more aspects of gridfs files instead of having to stick it in metadata.

      Attachments

        Activity

          People

            benji.rewis@mongodb.com Benji Rewis (Inactive)
            epelc@greatcloak.com Ed Pelc
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: