[Typo3-dev] tce_forms: EXT upload dirs / slash problem
Stefan Kreisberg
stefanNOSPAM at linkfactory.dk
Wed Mar 30 16:49:59 CEST 2005
All right, thx for the quick reply. I'll consider another approach like
renaming the files. I just found it strange that it actualy works well out
of the box in all other respects than the default edit option ... I guess
that the reason for parsing the slash in the filename to something else is
due to security related issues?
Sounds nice though with the file-refs ;-D
-Stefan
Kasper Skårhøj wrote:
> Hi Stefan,
>
> When you use the "group" field type to upload files they should not be
> put into subfolders - TYPO3 was not made for that and I'm not sure it
> will be adapted. Rather it will be supported soon to have file
> REFERENCES to a repository of files eg. in fileadmin/ instead - from
> where you can also point to the same file from several records.
>
> - kasper
>
>
> On Wed, 2005-03-30 at 12:02, Stefan Kreisberg wrote:
>> Hi list,
>>
>> I have a peculiar problem with an extension:
>> I can relate files ordinary with no problems, but when I save files in a
>> new directory beneath the extensions own folder, the slash in the file
>> name from the files BLOB field is translated to %2F (see below) but only
>> when calling the build ind t3lib_BEfunc::editOnClick ...!
>>
>> So:
>>
>> /uploads/tx_subjectdb/64%2FMyPDF.PDF
>>
>> Should be:
>>
>> /uploads/tx_subjectdb/64/MyPDF.PDF
>>
>> The main difference from other extensions are ofcourse that the field
>> files in this case holds the value 64/MyPDF.PDF ...
>>
>> Otherwise my "own" directories and saved files work perfectly ... so
>> showing the information in frontend is not an issue at all :D
>> (I create a new directory for each new element, since I am working on a
>> "Subject Database" with articles, reports and publications as attached to
>> the elms.
>>
>> I welcome any hint, suggestions, where to look ...
>>
>> Warning: filesize(): Stat failed
>> for /var/www/html/t3sandkasse1/uploads/tx_subjectdb/64%2FMyPDF.PDF
>> (errno=2 - No such file or directory)
>> in /var/www/html/typo3_src-3.7.0/t3lib/class.t3lib_tceforms.php on line
>> 1682
>> _______________________________________________
>> Typo3-dev mailing list
>> Typo3-dev at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
More information about the TYPO3-dev
mailing list