[TYPO3-project-formidable] File upload and process

Jerome Schneider typo3dev at ameos.com
Mon Oct 1 15:42:16 CEST 2007


Hi,

You may use renderlet:UPLOAD;

<renderlet:UPLOAD>
	<data
		targetdir="C:/typo3/uploads/"
		overwrite="false"
		cleanfilename="true"
		multiple="false"
	/>
</renderlet:UPLOAD>

and in your userobj:

$sAbsPath = $this->aORenderlets["myrdt_up"]->getServerPath();
$sRelPath = $this->toRelPath($sAbsPath);
$sRelPath2 = $this->_removeStartingSlash($sRelPath);
$sWebPath = $this->toWebPath($sAbsPath);

Hope this helps,
Jerome

Paweł Bandura a écrit :
> Hi
> 
> I'd like to upload the txt file and insert the data from this file to 
> the DB.
> I used datahandler:VOID and actionlet:REDIRECT, but when I call 
> _getFormData() function - I get the original filename and the path to 
> the temporary phpXY.tmp file on the server.
> 
> Does anyone know how I can get the name of file saved in the upload 
> directory I gave in the renderlet:FILE\targetdir?
> 


More information about the TYPO3-project-formidable mailing list