Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-412

mongofiles accepts whitespace as content type

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 2.8.0-rc1
    • Component/s: mongofiles
    • Labels:
      None

      mongofiles --type "  " put file

      creates

      {
        "_id": ObjectId("5474acbd45afae4ae5000001"),
        "chunkSize": 261120,
        "uploadDate": ISODate("2014-11-25T16:22:21.860Z"),
        "length": 1208,
        "md5": "77a8393546d7822d3b9af101f5e8ec7c",
        "filename": "file",
        "contentType": "  "
      }
      

      Not sure it makes sense to accept whitespace as a valid argument to --type.

            Assignee:
            Unassigned Unassigned
            Reporter:
            adinoyi.omuya@mongodb.com Adinoyi Omuya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: