File uploader for minigallery field

More
12 years 7 months ago #30020 by ggppdk
You are right the image is wrongly uploaded into the secure folder instead of the media folder, will commit fix

this was a bug introduced recently

thanks for reporting


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #30081 by ggppdk

maximus8891 wrote: I assume there should be a hidden field

Code:
<input type="hidden" name="secure" value="0" />
for the file upload form in the file
Code:
administrator/components/com_flexicontent/views/fileselement/tmpl/image.php
as it uploads files in a secure place, which is unreachable for an image-list.

FLEXIcontent version 2.0.0 RC9 (r1514)


Ok i have just confirmed it

This hidden field was there before and it was deleted when we introduced folder mode for fileselement view / filemanager controller

Thanks for report


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #30126 by maximus8891
It is a pleasure.

Hope to see a new commit soon!

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago - 12 years 7 months ago #30173 by maximus8891
Unfortunately, r1528 did not fix required validation problem.

Regardless if I selected an image or not it marks the whole field invalid.

Problem might be with this:

com_flexicontent_v2.x/plugins/image/image.php

str 546
Code:
$field->html .= '<input id="'.$field->name.'" class="'.$required.'" style="display:none;" name="__fcfld_valcnt__['.$field->name.']" value="'.($count_vals ? $count_vals : '').'">';

When a new item is created the value is blank. And the
value is not updated if I just select a file to upload. So there is no possible way for it to pass validation.
Last edit: 12 years 7 months ago by maximus8891.

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #30176 by ggppdk
in r1515-r1528 has many validation improvements
- Validation speed of the item edit form is greatly improved
- De-focus rechecks most fields (not for file field or minigallery field)
- Limitation for min , max , exact number of values for selectmultiple, checkbox, checkboximage
- Fixed required pafor image field field
- Fixed marking Labels red for all invalid fields (was not working for some fields)

About minigallery and file field, defocus cannot recheck the field, we need to do it differently, if you click to save item then it pass validation RIGHT?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #30180 by maximus8891

maximus8891 wrote:
Problem might be with this:

com_flexicontent_v2.x/plugins/image/image.php

str 546

Code:
$field->html .= '<input id="'.$field->name.'" class="'.$required.'" style="display:none;" name="__fcfld_valcnt__['.$field->name.']" value="'.($count_vals ? $count_vals : '').'">';

When a new item is created the value is blank. And the
value is not updated if I just select a file to upload. So there is no possible way for it to pass validation.


and it doesn't pass validation only when I click SAVE. BLUR causes no problem.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.358 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save