Chronoforms v4 MP3 file upload issue

luxhodge 23 Jun, 2014
[attachment=4]JSB_MP3_FIleUploadError5.png[/attachment][attachment=3]JSB_MP3_FIleUploadError4.png[/attachment][attachment=2]JSB_MP3_FIleUploadError3.png[/attachment][attachment=1]JSB_MP3_FIleUploadError2.png[/attachment][attachment=0]JSB_MP3_FIleUploadError.png[/attachment]Hello!

Having some issues with the GH file upload action. I am running Chronoforms v4.01 on Joomla! v2.5.22. I have a simple test form right now with one file upload input and a submit button. On the actions list I have a show HTML on onLoad and the file upload GH action and a debugger on Submit. The file upload is setup as shown in the screenshots. Nothing fancy. I am using the date plus the file name for the uploaded file, and I have the upload directory as just the root public_html directory. The strange thing is that it works if I upload a jpg file, but if I try to upload an MP3, it gives me the screen full of errors shown in the screenshots. I have the max file size set high to make sure I can handle the larger MP3. It doesn't seem to be a file size problem though. It tries to upload the file to the temporary folder, but then it can't move it. Anybody got any ideas? Your help would be much appreciated.


Thank you!

Erik
GreyHead 23 Jun, 2014
Hi luhodge,

File uploading happens in two parts. When you submit the form PHP manages the physical upload into a temporary folder. Then ChronoForms gets the information about this, validates the file type and size and moves+renames the file to it's final folder.

From the error messages what is happening here is that the first step is failing. PHP isn't uploading the file to the temporary folder successfully. What I can't tell is why this is happening. You might try adding a Custom Code action with this debug code to see if you get anything more useful from it:
<?php
echo'<div>$_FILES: '.print_r($_FILES, true).'</div>';
?>

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