This brings it closer to tdb_open(), so we can unify more easily.
Attach a file by drag & drop or click to upload