snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

How do I adjust the allowed filetypes???

Open rp-tech opened this issue 11 years ago • 6 comments

When I go to attach a file, for example, a zip file containing a license file to one of our software licenses, it tells me the filetype is not allowed.

I checked the php config files but I do not see mimes.php anywhere?

Is there a specific configuration file that holds this setting? I did not see it in the documentation anywhere.

Please advise,

Thanks!

rp-tech avatar Mar 12 '15 17:03 rp-tech

File types are not a configurable option at this point. If you change them in the model, your changes will be overwritten any time we update that file. What mime type were you looking to add?

snipe avatar Mar 12 '15 18:03 snipe

Right now I'm trying to upload a 20 KB zip file, which contains a .LIC file for our AV software, and an email (.msg) file containing the discussion surrounding the purchase.

It would be nice if this were a configurable option.

Can you point me to the correct PHP file for now so I can (temporarily) allow myself to upload it?

rp-tech avatar Mar 12 '15 19:03 rp-tech

It would be in the licenses model.

snipe avatar Mar 12 '15 20:03 snipe

Hmm, I checked app/models/License.php and LicenseSeat.php, I don't see any code pertaining to mime / file types?

rp-tech avatar Mar 12 '15 23:03 rp-tech

I already pushed this out to the develop branch.

snipe avatar Mar 12 '15 23:03 snipe

Oh, I see.. app/controllers/admin/LicensesController.php

Thank you!

rp-tech avatar Mar 12 '15 23:03 rp-tech