Important:
This support area is for Kalium 3 users only.
Support for Kalium 4 has moved to our new platform at support.laborator.co.
If you’re using Kalium 4, please create a new account there using your email and license key. A password will be sent to you automatically.
The template we purchased allows me to drag and drop images but stops there. I need to know what code adaptations to make to cause the image to actually upload onto my server
Hi Andrew Cole,
By default file uploading is not handled by Neon theme, it is a "fake" upload success message for security reasons.
To process and move uploaded file from:
https://demo.neontheme.com/forms/file-upload/
Example: Dropzone - Drag n' Drop File Upload
It sends requests to "data/upload-file.php"
In upload-file.php to handle upload you can add the following example code (but you should add security measures as well):
$ds = DIRECTORY_SEPARATOR; //1 $storeFolder = 'uploads'; //2 if ( ! empty( $_FILES ) ) { $tempFile = $_FILES['file']['tmp_name']; //3 $targetPath = dirname( __FILE__ ) . $ds . $storeFolder . $ds; //4 $targetFile = $targetPath . $_FILES['file']['name']; //5 move_uploaded_file( $tempFile, $targetFile ); //6 }Here is the article that explains the full process:
https://startutorial.com/view/dropzonejs-php-how-to-build-a-file-upload-form
I hope this helps you.