I am using Chronoforms v4.0.1 on Joomla! 3.1.5 with PHP5.3.22. I am trying to create a simple file upload form. I am using the GH file upload action and a standard upload input. I have attached some screen shots of the configuration for the action. I am getting the following error when I try to do the upload: File post array:Array([error]=>99999) and The file field type is not present in the posted data. So that means the file name is not getting read into the form data array. I am not sure why. I tried to create a hidden input with the file name value as the value, but that did not do anything. This shouldn't be that hard. I can see that chronoforms created the directory for the file, but it failed to add it because the field is blank in the array. I just don't know why it is blank. Thanks for your patience. Please let me know what you think.
Erik
Erik
SOLVED - sort of.
I did not get the file upload to work on multipage form with the upload input on the first page and the action on the submit event. However, when I moved the upload input to page two (two page form), everything worked great. Both the standard file upload and GH upload work. Anyone seen this before where the file name will not pass through from page 1 to submit on a multi-page? Anyway, it works the way I have it, and I am going with that.
Erik
I did not get the file upload to work on multipage form with the upload input on the first page and the action on the submit event. However, when I moved the upload input to page two (two page form), everything worked great. Both the standard file upload and GH upload work. Anyone seen this before where the file name will not pass through from page 1 to submit on a multi-page? Anyway, it works the way I have it, and I am going with that.
Erik
Hi Erik,
I think that the Upload Files action has to be on the Submit event immediately following the page with the File Upload element. If that isn't the last page of the form you need to add custom code to gather up the information from the file upload and save it in the session until you need it later. The neatest solution is the one that you found to put the File Upload at the end of the form.
Bob
I think that the Upload Files action has to be on the Submit event immediately following the page with the File Upload element. If that isn't the last page of the form you need to add custom code to gather up the information from the file upload and save it in the session until you need it later. The neatest solution is the one that you found to put the File Upload at the end of the form.
Bob
This topic is locked and no more replies can be posted.