@thomasaull
When you set up the site configuration. In file /site/config.php change the row to true and you will see backend debugging capabilities.
/*** SITE CONFIG *************************************************************************/
/**
* Enable debug mode?
*
* Debug mode causes additional info to appear for use during dev and debugging.
* This is almost always recommended for sites in development. However, you should
* always have this disabled for live/production sites.
*
* @var bool
*
*/
$config->debug = true;
Thanks for the answer on downloading the file in the Processwire. I don’t understand very well how API communication works. But your module perfectly illustrates this feature. I managed to transfer any information from the site through the API. But I can’t transfer a file through your module to site.
When we submit a file from the form, we have identifiers
<input type="file" name="uploadedFile[]" id="uploadedFile" multiple>
And we can find it in global wire('input') or $_GET, $_POST. But in our case this is empty wire('input')->post->upload