Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File type not allowed #1470

Closed
decha1980 opened this issue Oct 4, 2019 · 2 comments
Closed

File type not allowed #1470

decha1980 opened this issue Oct 4, 2019 · 2 comments

Comments

@decha1980
Copy link

sysPass Version
3.1

Describe the bug
Error importing file.

Event log
[2019-10-04 12:16:44] syspass.EXCEPTION: logger {"message":"File type not allowed
#0 /var/www/html/syspass/app/modules/web/Controllers/AccountFileController.php(226): SP\Modules\Web\Controllers\AccountFileController->checkAllowedMimeType(Object(SP\DataModel\FileData),Object(SP\Storage\File\FileHandler))
#1 [internal function]: SP\Modules\Web\Controllers\AccountFileController->uploadAction(Integer)
#2 /var/www/html/syspass/lib/SP/Bootstrap.php(240): call_user_func_array(Array,Array)
#3 [internal function]: SP\Bootstrap->SP{closure}(Object(Klein\Request),Object(Klein\Response),Object(Klein\ServiceProvider),Object(Klein\App),Object(Klein\Klein),Object(Klein\DataCollection\RouteCollection),Array)
#4 /var/www/html/syspass/vendor/klein/klein/src/Klein/Klein.php(886): call_user_func(Object(Closure),Object(Klein\Request),Object(Klein\Response),Object(Klein\ServiceProvider),Object(Klein\App),Object(Klein\Klein),Object(Klein\DataCollection\RouteCollection),Array)
#5 /var/www/html/syspass/vendor/klein/klein/src/Klein/Klein.php(588): Klein\Klein->handleRouteCallback(Object(Klein\Route),Object(Klein\DataCollection\RouteCollection),Array)
#6 /var/www/html/syspass/lib/SP/Bootstrap.php(464): Klein\Klein->dispatch(Object(Klein\Request))
#7 /var/www/html/syspass/lib/Base.php(75): SP\Bootstrap->run(Object(DI\Container))
#8 /var/www/html/syspass/index.php(28): require(String)","caller":"N/A"}

Platform (please complete the following information):

  • OS: Ubuntu
  • OS Version: 18.04.3 LTS
  • Browser Firefox, Chrome

Additional context
I installed syspass according to the instructions on the page:
https://kifarunix.com/install-syspass-password-manager-on-ubuntu-18-04/

@nuxsmin
Copy link
Owner

nuxsmin commented Oct 7, 2019

Hello, did you add the file mime type to the allowed list in accounts configuration?

Regards

@decha1980
Copy link
Author

Hello,
my mistake. I actually forgot to add configuration exceptions. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants