]> git.mxchange.org Git - friendica.git/commitdiff
[frio] import contacts form was missing the enctype
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Wed, 11 May 2022 15:28:57 +0000 (17:28 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Wed, 11 May 2022 15:28:57 +0000 (17:28 +0200)
fixes #11492 hopefully

For uploading files, the enctype for the form has to be set to `multipart/form-data`. Frio was missing this specification, other themes inherit it from the default template.

view/theme/frio/templates/settings/account.tpl

index c3ec33043ce13b72f20928a17048bfbe4c2d61a1..c08dc6ca2f2c2f893184e609b38b129cb50f8c76 100644 (file)
                        </form>
 
                        {{* Import contacts CSV *}}
-                       <form action="settings/account/importcontact" method="post" autocomplete="off" class="panel">
+                       <form action="settings/account/importcontact" method="post" autocomplete="off" class="panel" enctype="multipart/form-data">
                                <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
                                <div class="section-subtitle-wrapper panel-heading" role="tab" id="importcontact-settings">
                                        <h2>