Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am eskimo on github.
  • I am eskimo_dev (https://keybase.io/eskimo_dev) on keybase.
  • I have a public key whose fingerprint is B016 FE72 3F5A 1B1C BDB0 FB4E ED5D 9468 B7BF D0D8

To claim this, I am signing this object:

@eskimo
eskimo / upload.php
Created May 15, 2024 19:41
Igloo - Custom uploader example
<?php
set_time_limit(0);
// CONFIGURATION
$maxFileSize = 25600000; // 25MB
$uploadDirectory = "uploads/";
$allowedTypes = ["image", "video", "audio"]; // USE [] TO ALLOW ALL FILE TYPES
$authTokens = ["randomtokenhere", "andanotherone"];
$idLength = 32;