trident icon indicating copy to clipboard operation
trident copied to clipboard

Error uploading files with 4 character extension

Open stewrg opened this issue 8 years ago • 3 comments

When trying to upload a Maltego diagram (which has a .mtgl file extension), I gat an upload error which says

"Add File Unsupported filetype Please contact us if this is unexpected."

But if I zip it with the same file name no problem. I assume that file extensions of 4 characters are not recognised. Please remover this restriction.

stewrg avatar Mar 24 '17 04:03 stewrg

The system actually does not limit on the length of the extension.

Your problem is that the filetype (read: mime type) is not known to our buildin list nor to the golang mimetype library, and that is why it rejects it.

Seems we really need to start resorting to libmagic and/or allowing any type of data to be uploaded. The latter would be a flag though that has to be enabled on the TG level.

massar avatar Mar 28 '17 14:03 massar

Stew, what is the file-type that was attempted? We'll add a big batch of new mime-types, I want to make sure this is on the list.

Thanks Ben

bapril avatar Oct 07 '17 17:10 bapril

I am having problems with Maltego files - [filename].mtgl

and also

pgp encrypted excel files - [filename].xlsx.gpg

The workaround is to zip the files, and upload that.

Stew

stewrg avatar Apr 15 '18 21:04 stewrg