Moin,
ich möchte dem User mit der Extension "fileupload" ermöglichen seine Urlaubsbilder in einen vordefinierten Ordner zu uploaden und in die "goof_fotoboek" zu integrieren.
Da "goof_fotoboek" eigentlich nur .jpg unterstützt, kann ich soweit alle Dateien ausschliessen - ausser PNG.
Da kann ich machen was ich will, PNG-Dateien werden hochgeladen. Von der Sytax her sollte es aber passen.
Fällt jemanden von euch was auf was ich vergessen habe?
Hier mein TS
plugin.tx_fileupload_pi1{
checkMime = 1
mimeExclude = image/gif, image/png, application/x-zip-compressed, application/octet-stream
mimeInclude = *
checkExt = 1
extExclude = txt,htm,html,exe,php,php3
extInclude = *
maxsize = 600000
#path = fileadmin/
path = fileadmin/Bildergalerie_Guest/
FEuserHomePath=1
FEuserHomePath.field = username
noOverwrite = 1
fileMode = 0755
_CSS_DEFAULT_STYLE (
)
_LOCAL_LANG.default {
}
_DEFAULT_PI_VARS {
}
# This cObject must contain the upload-form
#
# The upload form must at least contain the following:
#
# a) an input field of type "file" and name "tx_fileupload_pi1"
# b) an input field of type "submit" and name "tx_fileupload_pi1[do_upload]"
#
# If you insert the marker ###STATUS### it will be replaced by any status messages that was generated
# following an upload
#
uploadformcObject = TEXT
uploadformcObject.insertData = 1
uploadformcObject.value(
<form enctype="multipart/form-data" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="500000" />
<input name="tx_fileupload_pi1" type="file" /><input type="submit" name="tx_fileupload_pi1[do_upload]" value="{LLL:EXT:fileupload/pi1/locallang.php:submitupload}" />
<div class="alert">###STATUS### </div>
)
# These are the status messages that can be displayed after an upload request has been processed
message{
#File already exists on server
exist = TEXT
exist.value = <p>{LLL:EXT:fileupload/pi1/locallang.php:error.exist}</p>
exist.insertData = 1
#File too big
toobig = TEXT
toobig.value = <p>{LLL:EXT:fileupload/pi1/locallang.php:error.toobig}</p>
toobig.insertData = 1
#Mime type not allowed
mimenotallowed = TEXT
mimenotallowed.value = <p>{LLL:EXT:fileupload/pi1/locallang.php:error.mimenotallowed}</p>
mimenotallowed.insertData = 1
#File extension not allowed
extensionnotallowed = TEXT
extensionnotallowed.value = <p>{LLL:EXT:fileupload/pi1/locallang.php:error.extensionnotallowed}</p>
extensionnotallowed.insertData = 1
#Upload was succesfull
uploadsuccesfull = TEXT
uploadsuccesfull.value = <p>{LLL:EXT:fileupload/pi1/locallang.php:uploadsuccesfull}</p>
uploadsuccesfull.insertData = 1
#File was only partially uploaded
partial = TEXT
partial.value = <p>{LLL:EXT:fileupload/pi1/locallang.php:error.partial}</p>
partial.insertData = 1
#No file was uploaded
nofile = TEXT
nofile.value = <p>{LLL:EXT:fileupload/pi1/locallang.php:error.nofile}</p>
nofile.insertData = 1
#Unknown error
unknown = TEXT
unknown.value = <p>{LLL:EXT:fileupload/pi1/locallang.php:error.unknown}</p>
unknown.insertData = 1
}
}