[TYPO3-english] Re: Re: Re: comments extension with file upload
Vasyl Mosiychuk
vasyl at typo3.net.ua
Wed Nov 27 11:34:30 CET 2013
Hello!
I added the following HTML code to the forms of comments.
<form action="###ACTION_URL###" method="post" enctype="multipart/form-data">
[...]
<label for="tx_jbimagecomments_image">Image</label>
<input class="tx-comments-comment-input" type="file" name="tx_comments_pi1[tx_jbimagecomments_image]" id="tx_comments_pi1_image" value="###IMAGE###"> ###ERROR_IMAGE###<br />
[...]
</form>
But still I can not add a picture with the comment.
I get an error at the top of the page.
array(1) { ["tx_comments_pi1"]=> array(5) { ["name"]=> array(1) { ["tx_jbimagecomments_image"]=> string(9) "image.png" } ["type"]=> array(1) { ["tx_jbimagecomments_image"]=> string(9) "image/png" } ["tmp_name"]=> array(1) { ["tx_jbimagecomments_image"]=> string(14) "/tmp/phpw3PwVK" } ["error"]=> array(1) { ["tx_jbimagecomments_image"]=> int(0) } ["size"]=> array(1) { ["tx_jbimagecomments_image"]=> int(160038) } } }
What am I doing wrong?
--
TYPO3 Integrator
====================
http://www.typo3.net.ua/
More information about the TYPO3-english
mailing list