chronoforms upload image and video only

bobis 10 Oct, 2012
Hi I have installed in joomla the extension Chronoforms and I want to create a registration form that the user can upload an image and a video. My problem is that when the user press the button upload the user can upload whatever document he wants but I want only to upload images in field of images and in the field of video respectively. Does anyone has any idea of how to do it?
bobis 10 Oct, 2012
I show the tutorial but now I have other problems.When I choose a file to upload with a false extension instead of show me the message "Sorry, Your uploaded file type is not allowed." it doesn't appear anything unless if I insert the debugger but it show me the code and the message but I don't want to appear the code only the message. What can I do to show me the message?
GreyHead 10 Oct, 2012
Hi bobis,

It sounds as though you are redirecting the user somewhere or there is a problem with the URLs.

Please post a link to the form so I can take a quick look.

Bob
bobis 10 Oct, 2012
Maybe there is the problem but I can't post the link because I am working in local server. Would you like to upload some screenshots from the upload file settings or you suggest me to do something else?
GreyHead 11 Oct, 2012
Hi bobis,

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
GreyHead 12 Oct, 2012
Hi Bobis,

A) You need to add an Event Loop action to the pink OnFail event of the Upload Files action to handle the errors.

B) You have the upload path set to the site root - you probably don't want to do this on a live site for security reasons. The root folder normally shouldn't be writeable.

Bob
bobis 12 Oct, 2012
Ok it works๐Ÿ™‚. The last thing I want to help me is when the user fill the field username and upload an image/video and press the button submit. Then how will appear the image/video (that the user had choosen) in the next page?
GreyHead 12 Oct, 2012
Hi bobis,

To show the image you can add a normal image tag to the Thank You Page action HTML putting {input_name} where you want that file name to appear:
<p>Here is your image<p>
<img src='components/com_chronoforms/uploads/folder_name/{input_name}' />


The video is a little more complicated because you will need to add the code for a video player in the same way.

Bob
bobis 12 Oct, 2012
Where is the "Thank You Page" action? I found only the "Show Thanks Message" action.
GreyHead 12 Oct, 2012
Hi Bobis,

That's the one, I got the name wrong :-(

Bob
bobis 12 Oct, 2012
I put the below code in the "Show Thanks Message" but it doesn't appear the image only the paragraph. What can I do to appear the image?

<p>Here is your image<p>
<img src='components/com_chronoforms/uploads/form/{google}' />
GreyHead 13 Oct, 2012
Hi bobis,

Please look at the page source and see exactly what link is being created so that you can debug the code.

Bob
bobis 13 Oct, 2012
My page source is correct. When I press the button submit it appears in the next page this:
GreyHead 13 Oct, 2012
Hi bobis,

But as there is no image showing it probably isn't correct :-(

Bob
bobis 15 Oct, 2012
Yes but I am 100% that the source that I use is correct. I tried many times but I had the same result ๐Ÿ˜ข . Do you want to sent you the form to take a look?
GreyHead 15 Oct, 2012
Hi bobis,

Please post a link to the form so I can take a quick look.

Bob
GreyHead 16 Oct, 2012
Hi bobis,

Thanks for the form - it works OK provided that the curly bracket entry in the Thank You message matches the input name
<p>Here is your image<p>
<img src='components/com_chronoforms/uploads/form/{file_upload}' />

Bob
bobis 18 Oct, 2012
If you want show me how I will do the same thing but with a video? As you told me its a little complicated so can you show me the code?

I tried it again to upload an image but it appears the below image. I can not understand what is the problem but anyway I hope to solve it. Thank you.
GreyHead 18 Oct, 2012
Hi bobis,

You'll need some kind of plug-in to show a video (or to add the necessary HTML). It's possible that you already have something on your site, or in your template. I quite like the RokBox plug-in that comes with RocketTheme templates. That's what is used to link the videos in the FAQs here.

Bob
bobis 26 Dec, 2012
thank you ๐Ÿ˜€
equatorlounge 10 Mar, 2013
Dear Greyhead:

first and foremost I wanted to say a big thanks for dedicating your time to your extension.

Regarding the file upload image only, I still haven't figured out why it isn't working and that's driving me nuts. I followed the same rules as you mentioned in file uploads and added the criteria for image types as well but it still doesn't validate, unlike the other text fields

Here is a brief of what I did, see the screenshots for more information

i also added the event loop, i would have shown it to you however you have an image upload limit and you are right about that !

hope to hear from your response very soon

KRgds
GreyHead 11 Mar, 2013
Hi equatorlounge,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug results here.

Bob
This topic is locked and no more replies can be posted.