Allow setting uploadDate on gridfs upload file

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Ed Pelc
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: