File uploader for minigallery field

More
13 years 3 months ago #29976 by maximus8891
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)

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

More
13 years 3 months ago #29979 by ggppdk
minigallery is uploading to FLEXIcontent MEDIA folder, while image(image gallery) and file field are uploading to FLEXIcontent SECURE folder,

future version of minigallery will be able to use the "folder mode" that was added to image(image gallery) field , and thus have item_id_field_id specific folder


-- 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 review. Thanks!

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

More
13 years 3 months ago #29984 by maximus8891
Then this is a bug, as a minigallery does NOT upload to a MEDIA folder by default. Unlike RC5, for example.

I have checked r1522 from SVN for this behavior. The same problem exists.

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

More
13 years 3 months ago #29987 by maximus8891
Another problem is with other "Image / Image Gallery" field.

I add an image to a material. The next time I try to edit and save the material, it tells me there is an unfilled input, which happens to be a file input of a hidden form "Change this value". After I re-set it, it proceeds normally.

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

More
13 years 3 months ago #30002 by ggppdk
there is a bug with the required parameter for new image/image gallery field, please disable it, this is fixed some revision after r1514

about minigallery, it does use the media folder, which has a default value of :
components/com_flexicontent/medias


-- 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 review. Thanks!

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

More
13 years 3 months ago #30008 by maximus8891
Thank you for the reply.

Concerning the minigallery, I experienced such behaviour:
1. Pressed "Add" button.
2. Uploaded file through a modal file manager.
3. Got message "Successfully uploaded and selected"

though the list under the upload form remained empty. And in fact no file had been selected. But when I went to the file manager view. The file has been in the secure list.

After inserting this workaround:
Code:
<input type="hidden" name="secure" value="0" />

everything went on normal - I uploaded a file and it appeared in the list after the upload.

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

More
13 years 3 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 review. Thanks!

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

More
13 years 3 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 review. Thanks!

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

More
13 years 3 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
13 years 3 months ago - 13 years 3 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: 13 years 3 months ago by maximus8891.

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

Moderators: vistamediajoomlacornerggppdk
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