I've read and tried the tutorial here http://www.chronoengine.com/faqs/60-cfv4/cfv4-working-with-the-database/2666-how-can-i-edit-the-record-for-an-image.html
to display and edit uploaded image in the default upload folder but haven't succeeded yet, mainly because I don't know PHP and Javascript.
In particular, I'm confused with
and
Do i have to change the terms "name" and "image" in the above codes with my CF form name and/or the field name?
I also see that it's for CFv4 and the upload path is different with CFv5.
I already have an file upload field called "providerproof" (without the quotes) and i think it's the one referred to as "image" in the above code. Is that correct?
What else do I have to change in the code please?
Thanks in advance.
to display and edit uploaded image in the default upload folder but haven't succeeded yet, mainly because I don't know PHP and Javascript.
In particular, I'm confused with
$form->data['image']) && $form->data['image'] )
and
components/com_chronoforms/uploads/{$form->form_details->name}/{$form->data['image']
Do i have to change the terms "name" and "image" in the above codes with my CF form name and/or the field name?
I also see that it's for CFv4 and the upload path is different with CFv5.
I already have an file upload field called "providerproof" (without the quotes) and i think it's the one referred to as "image" in the above code. Is that correct?
What else do I have to change in the code please?
Thanks in advance.
Hi phicts,
I've just replied to a similar post of yours in a different thread - that was about displaying images in CC.
What exactly do you need to do here?
Bob
PS the code snippets you posted are incomplete and don't make much sense without the rest of the example.
I've just replied to a similar post of yours in a different thread - that was about displaying images in CC.
What exactly do you need to do here?
Bob
PS the code snippets you posted are incomplete and don't make much sense without the rest of the example.
People, why do you try to create similar posts? I think they will be lost, all of them and not be answered. It's the thing i can probably never understand.
Hi Bob.
The topic you referred to is just about putting the correct path or the codes to show the uploaded image in a ChronoConnectivity listing. I stumbled upon it while searching for the right way to display uploaded images right in a Chronoform form, not connectivity.
The steps to display and edit uploaded images as explained must be correct for CFv4, since it's there. But like you said and as I have tried, it doesn't apply for CFv5, which is the version I am using.
I've been googling the site and couldn't find a comprehensive or clear tutorial to at least display uploaded image, and hopefully, edit the same. In my search, I used the terms "display/show/edit image" so I hope that this topic, when solved, can help other newbies in searching with those keywords.
The codes I specified serve to highlight the parts of the php(?) codes that I am not sure of, or TBH, I just don't know. They're taken from the tutorial, http://www.chronoengine.com/faqs/60-cfv4/cfv4-working-with-the-database/2666-how-can-i-edit-the-record-for-an-image.html,
The topic you referred to is just about putting the correct path or the codes to show the uploaded image in a ChronoConnectivity listing. I stumbled upon it while searching for the right way to display uploaded images right in a Chronoform form, not connectivity.
The steps to display and edit uploaded images as explained must be correct for CFv4, since it's there. But like you said and as I have tried, it doesn't apply for CFv5, which is the version I am using.
I've been googling the site and couldn't find a comprehensive or clear tutorial to at least display uploaded image, and hopefully, edit the same. In my search, I used the terms "display/show/edit image" so I hope that this topic, when solved, can help other newbies in searching with those keywords.
The codes I specified serve to highlight the parts of the php(?) codes that I am not sure of, or TBH, I just don't know. They're taken from the tutorial, http://www.chronoengine.com/faqs/60-cfv4/cfv4-working-with-the-database/2666-how-can-i-edit-the-record-for-an-image.html,
Hi Phict,
You are right - in CFv5 the default upload path is different as the folder is now chronoforms5. Otherwise the FAQ looks OK to me.
Bob
You are right - in CFv5 the default upload path is different as the folder is now chronoforms5. Otherwise the FAQ looks OK to me.
Bob
In the tutorial, it looks to me like I have to to create two new elements in the Designer tab,
[list]one called 'image' to display the currently loaded image file?
and another UploadFile element also with the same name 'image' to replace/edit the existing image?[/list]
I already have an existing file upload field called "providerproof" (without the quotes. Can I just replace the term 'image' in the tutorial to match my current name providerproof?
In the php codes, what terms/words do I have to edit/change? Just the word image?
Please bear with me. Thanks.
[list]one called 'image' to display the currently loaded image file?
and another UploadFile element also with the same name 'image' to replace/edit the existing image?[/list]
I already have an existing file upload field called "providerproof" (without the quotes. Can I just replace the term 'image' in the tutorial to match my current name providerproof?
In the php codes, what terms/words do I have to edit/change? Just the word image?
Please bear with me. Thanks.
This topic is locked and no more replies can be posted.