Hallo @ all.
ich versuch ein Frontend Datei Upload einzubinden. Die Dateien sind ZIP Dateien.
Das eigentliche Hochladen der Datei klappt. Die form.xml dazu ist simpel:
XML
<?xml version="1.0" encoding="UTF-8"?>
<form>
<fieldset name="upload">
<field name="momento_zip" type="file" size="10" accept="application/zip"/>
</fieldset>
</form>
Das Ergebnis von print_r($_FILES):
Code
Array
(
[momento_zip] => Array
(
[name] => test.zip
[type] => application/zip
[tmp_name] => /var/www/web22545253/phptmp/phpSZrE1A
[error] => 0
[size] => 513541
)
)
Alles anzeigen
Das Ergebnis von $Jinput->files:
Code
oomla\CMS\Input\Files Object
(
[decodedData:protected] => Array
(
)
[inputs:protected] => Array
(
)
[options:protected] => Array
(
)
[filter:protected] => Joomla\CMS\Filter\InputFilter Object
(
[stripUSC] => 0
[tagsArray] => Array
(
)
[attrArray] => Array
(
)
[tagsMethod] => 0
[attrMethod] => 0
[xssAuto] => 1
[tagBlacklist] => Array
(
[0] => applet
[1] => body
[2] => bgsound
[3] => base
[4] => basefont
[5] => canvas
[6] => embed
[7] => frame
[8] => frameset
[9] => head
[10] => html
[11] => id
[12] => iframe
[13] => ilayer
[14] => layer
[15] => link
[16] => meta
[17] => name
[18] => object
[19] => script
[20] => style
[21] => title
[22] => xml
)
[attrBlacklist] => Array
(
[0] => action
[1] => background
[2] => codebase
[3] => dynsrc
[4] => formaction
[5] => lowsrc
)
[blacklistedChars:Joomla\Filter\InputFilter:private] => Array
(
[0] => &tab;
[1] => &space;
[2] => :
[3] => &column;
)
)
[data:protected] => Array
(
[momento_zip] => Array
(
[name] => test.zip
[type] => application/zip
[tmp_name] => /var/www/web22545253/phptmp/phpSZrE1A
[error] => 0
[size] => 513541
)
)
)
Alles anzeigen
Das Ergebniss von $jinput->files->get('momento_zip'); ist:
Wenn ich es mit einer anderen Datei wird $jinput->files->get('momento_zip'); gefüllt.
Code
Array
(
[name] => LICENSE
[type] => application/octet-stream
[tmp_name] => /var/www/web22545253/phptmp/phpAwGjPm
[error] => 0
[size] => 18046
)
Was übersehe ich?