mongofiles accepts whitespace as content type

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Trivial - P5
    • None
    • Affects Version/s: 2.8.0-rc1
    • Component/s: mongofiles
    • 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
            Reporter:
            Adinoyi Omuya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: