I am using AjaxUpload on PHP 8 with only one issue:
$_SESSION[“ajaxupload”]:
Array
(
)
is showing on the fron end. Debug is switched off and all TPLs are filled in.
Here is my formit call
[[!FormIt?
&preHooks=`Formit2AjaxUpload`
&hooks=`AjaxUpload2Formit,email`
&ajaxuploadFieldname=`pageImage`
&ajaxuploadTarget=`images/st/`
&ajaxuploadClearQueue=`1`
&ajaxuploadUid=`pageImage`
&emailTo=`mila.lozanova@proenviro.co.uk`
&emailFrom=`mila.lozanova@proenviro.co.uk`
&emailTpl=`forum_email_tpl`
&formName=`IDNI - New Sustainable Technology`
&validationErrorMessage=`The form contains errors!`
&successMessage=`Form submitted successfully!`
&formFields=`id,
company_name,
name,
email,
company_address,
postcode,
pagetitle,
category,
subcategory,
details`
&fieldNames=`id==Id,
company_name==Company Name,
name==Contact Name,
email==Email,
company_address==Address,
postcode==Postcode,
pagetitle==Page Title,
category==Category,
subcategory==Subcategory,
details==Content`
&validate=`
company_name:required,
name:required,
email:email:required,
company_address:required,
postcode:required,
pagetitle:required,
category:required,
subcategory:required,
`
]]
And ajax call:
[[!AjaxUpload?
&uid=`pageImage`
&addJquery=`1`
&addJscript=`1`
&maxFiles=`1`
&maxFilesizeMb=`32`
&allowedExtensions=`jpg,jpeg,png,gif`
&uploadSectionTpl=`tplAjaxuploadUploadSectionNew`
]]
Once i uploaded a file it changes to:
$_SESSION["ajaxupload"]:
Array
(
[f428b41f67f0612ea28eedd2161bf563] => Array
(
[originalBaseUrl] => /home/USERFOLDER/WEBFOLDER/assets/components/ajaxupload/cache/
[path] => /home/USERFOLDER/WEBFOLDER/assets/components/ajaxupload/cache/
[base_url] => /assets/components/ajaxupload/cache/
[uniqueName] => fffddbd74133669f8895056a4e52937f.jpg
[originalName] => adobestock-241828834.7da8854d.jpg
[thumbName] => 044a3cff012fc770e26a4d8e33d645a0.jpg
)
)
Any help with this would be greatly appreciated.