Zum Inhalt springen

file upload

Erstellt am 16. August 2005 · 3 Antworten · letzte Antwort am 12. Januar 2006

Tags: Frage

Alexa ·

Hallo,

ich habe ein Problem mit dem File Upload.

Ich habe im setup eingestellt, dass jeder User die Dateien in seinen eigenen Ordner hochladen soll. Leider funktioniert das nicht und er läd die Dateien nicht in den Pfad, sondern irgendwo hin.

Könnt ihr mir vielleicht sagen, was ich falsch mache?

Hier mein Setup:

plugin.tx_fileupload_pi1.checkMime = 0
plugin.tx_fileupload_pi1.mimeInclude = image/gif,image/jpeg,application/x-zip-compressed
plugin.tx_fileupload_pi1.mimeExclude = application/octet-stream
plugin.tx_fileupload_pi1.checkExt = 1
plugin.tx_fileupload_pi1.extExclude = exe,php,php3
plugin.tx_fileupload_pi1.extInclude = *
plugin.tx_fileupload_pi1.maxsize = 50000
plugin.tx_fileupload_pi1.FEuserHomePath = fileadmin/ssffm
plugin.tx_fileupload_pi1.FEuserHomePath = 1
plugin.tx_fileupload_pi1.FEuserHomePath.field = username
plugin.tx_fileupload_pi1.noOverwrite = 1
plugin.tx_fileupload_pi1._CSS_DEFAULT_STYLE (
)
plugin.tx_fileupload_pi1._LOCAL_LANG.default {
}
plugin.tx_fileupload_pi1._DEFAULT_PI_VARS {
}

Was ist eigentlich das "doc/wizard_form.html"? Muss ich da das

plugin.tx_fileupload_pi1.FEuserHomePath = 1
plugin.tx_fileupload_pi1.FEuserHomePath.field = username

auch noch einfügen?

Danke für eure Hilfe!

LG, Alexa

Alexa ·

Hallo,

habe es nun hinbekommen!

Hier der richtige Code:

plugin.tx_fileupload_pi1.checkMime = 0
plugin.tx_fileupload_pi1.mimeInclude = image/gif,image/jpeg,application/x-zip-compressed
plugin.tx_fileupload_pi1.mimeExclude = application/octet-stream
plugin.tx_fileupload_pi1.checkExt = 1
plugin.tx_fileupload_pi1.extExclude = exe,php,php3
plugin.tx_fileupload_pi1.extInclude = *
plugin.tx_fileupload_pi1.maxsize = 50000
plugin.tx_fileupload_pi1.path = fileadmin/ssffm/
plugin.tx_fileupload_pi1.FEuserHomePath = 1
plugin.tx_fileupload_pi1.FEuserHomePath.field = username
plugin.tx_fileupload_pi1.noOverwrite = 1
plugin.tx_fileupload_pi1._CSS_DEFAULT_STYLE (
)
plugin.tx_fileupload_pi1._LOCAL_LANG.default {
}
plugin.tx_fileupload_pi1._DEFAULT_PI_VARS {
}

Leider funktioniert das, mit dem automatischem Ordner anlegen nicht!

Im doc/wizard_form.html muss man nur den Pfad angleichen, dann funktioniert es!

LG, Alexa

steffenk ·

doc/wizard_form.html wird vom Kickstarter angelegt und auch wieder von ihm eingelesen.

Zur Pfaderstellung kannst Du auch ext_emconf.php benutzen, dort unter createDirs