Prevent users to upload external links
The wikipedia image is used during the creation of a new event.
Below is the corresponding event:
{ "_id" : ObjectId("5beaf509d217646fce083530"), "tag" : [], "file" : [], "investigationId" : 77570462, "datasetId" : null, "datasetName" : null, "title" : "", "type" : "annotation", "category" : "comment", "filename" : null, "fileSize" : null, "username" : "mchaille", "software" : null, "machine" : null, "creationDate" : ISODate("2018-11-13T16:00:09.000Z"), "content" : [ { "_id" : ObjectId("5beaf509d217646fce083532"), "format" : "plainText", "text" : "\n" }, { "_id" : ObjectId("5beaf509d217646fce083531"), "format" : "html", "text" : "
<img src="https://en.wikipedia.org/static/images/project-logos/enwiki.png" alt="" width="135" height="155" />
" } ], "previousVersionEvent" : null, "createdAt" : ISODate("2018-11-13T16:00:09.479Z"), "updatedAt" : ISODate("2018-11-13T16:00:09.479Z"), "__v" : 0 }