GhostManSec
Server: Apache
System: Linux webm019.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: exhehbu (1008962)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/e/x/h/exhehbu/www/wp-content/plugins/complianz-gdpr/settings/src/utils/upload.js
import axios from 'axios';

export const upload = (action, file, details) => {
	let formData = new FormData();
	formData.append("data", file);
	if ( typeof details !== 'undefined' ){
		formData.append("details", JSON.stringify(details));
	}
	return axios.post(cmplz_settings.admin_url+'?page=complianz&cmplz_upload_file=1&action='+action, formData, {
		headers: {
			"Content-Type": "multipart/form-data",
			'X-WP-Nonce': cmplz_settings.nonce,
		},
	});
}