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

Allow setting uploadDate on gridfs upload file

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: GridFS

      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.

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

              Created:
              Updated:
              Resolved: