Skip to content

Instantly share code, notes, and snippets.

@ephod
ephod / lithops_config_schema.json
Created July 25, 2021 19:37
Config schema for lithops-cloud/ltihops YAML configuration autocompletion with IDE.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"lithops": {
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
<?php
declare(strict_types=1);
if (
!isset($_FILES['files']) &&
!isset($_FILES['files']['tmp_name']) &&
!is_iterable($_FILES['files']['tmp_name'])
) {
echo "No files exist.";
//Exit execution