Buy Now
Sign in

So, it was the Israeli Zionists behind all my problems!

For everyone who read about the problems I have been having the last few years, the zionist criminals are behind that, they have loyal groups around the world whom they use to hit innocenets, they do not like GOOD JUST people who can create bridges and make peace, specifically those who are religious, Muslims or Christians, And this is because the zionists are here to devide and destroy!

My life has been miserable, and they tried to make me think it's the French, the Italians, the Canadians, the Turkish, the Egyptians, the Germans, the Russians, the Malaysians, the Chrinese, the Japanese, they even used some American decoy, but it was them, the dirty zionists!

How do they play this ? Using cause and effect, they hit me while giving a logical reason related to one of the groups above, the reason is fake of course, but it took me a long time to understand this, almost 10 years, it's very difficult to think straight when someone is emotionally disturbed!

These criminals possess the following technologies:

  1. They create fake dreams, and can make in sleep interrogations and information extraction!
  2. They can disturb memory and play with the neurotransmitters' balance during sleep, you wake up the next day feeling horrible for no reason, trying to remember something happy gives no emotions at all!
  3. They use the cell phones to capture your brain waves and analyze it to know how do you feel and what you are thinking about (Google Glass was doing something similar)

They have been using these techniques against me for years to break me down while trying to make me suspect any of the groups above based on the situation, making me live in sadness and depression alone, they denied me friends and they destroyed all my relationships, and recently they started to torture me and tried to make me commit suicide in HongKong.

I do not believe a lot of people know this info, please share it, for the sake of God, for the sake of humanity!


File upload: input field in dynamic Path

flyboeing , November 06 2015, 10:02
flyboeing 150
November 06 2015, 10:02 #353213
Hello all,

For my CC list I created a ChronoForm to edit a record. For this I used this tutorial:

Everything is working great but now I want to add a file upload, so I can add an image to the edited record. With the static upload path everything is working great, but I would like to have a dynamic path for it.
I came across this tutorial:
Very helpfull, but I don't want to upload the file under some users folder, I want to upload it to the year that is used in the edit form.

In CF, in the Designer tab, I have a input field with the name "movements_ewas[year]" (without ""). This is how my date lookes in the edit form:
I also have a file upload element.

In the Setup tab I have a custom code before the file upload and it has this code:

$year = $form->data['movements_ewas']['year']);
$form->actions_config[3]["upload_path"] = "/home/sites/xxxx/images/movements".DS.$year.DS;

In the example image above the year is 2014. So when I want to upload a file to that record, the file has to be uploaded in the 2014 folder (in images/movements). This part isn't working.

After the custom code I have a file upload. In there I left the upload_path emtpy.

So when I test my form, the filename is stored in the database, but the file isn't uploaded.
I think I am doing something wrong with the custom code....

Hope someone can help me.

(1.82 KiB)
1474 Downloads/Views
pat01 301
July 18 2016, 14:34 #360738

I have the same problem.

In CF4 ist was possible to simply add the name of the desired field inside of curly brackets to the upload path.

It worked great.

Unfortunately it's not working in CF5 anymore.
Is there any solution for this?

Thanks a lot!

GreyHead 65
July 18 2016, 14:57 #360744
Hi Patrick,

What exactly do you need to do?

There are two ways to put an uploaded file in a custom folder.

+ you can move it after the Files Upload action, or

+ you can over-ride the default Upload Path - Max has posted some code to do this, I'd need to hunt that down in the forums.

?? It might also be possible to add a folder prefix to the file name in the File Name code box - I haven't tried that ??

pat01 301
July 18 2016, 15:15 #360749
Hi Bob

In the form I have a textfield named "lastname". I want the upload path to be like this:

where {lastname} will be replaeced with the data the user puts into the field "lastname".

In CF4 it worked like this:

But it's not working in CF5.

(55.71 KiB)
1700 Downloads/Views
GreyHead 65
July 18 2016, 15:41 #360751
Hi Patrick,

This seems to work.

Add a Custom Code action before the Upload Files action with code like this:
$form->actions_config[1]['upload_path'] = JPATH_SITE.'/components/com_chronoforms5/chronoforms/uploads/'.$form->form['Form']['title'].'/'.$form->data['text4'].'/';

Replace the 1 with the ID of the Files Upload action - the little number just after the Files Upload label.
Replace the path with the one you need. In your case that will be something like

pat01 301
July 19 2016, 08:38 #360762
Hi Bob

Works great, thank you very much!