Skip to content

Instantly share code, notes, and snippets.

@FatihBAKIR
Created August 25, 2016 10:53
Show Gist options
  • Save FatihBAKIR/5995bbb575713ff8a9c6432b43c9a107 to your computer and use it in GitHub Desktop.
Save FatihBAKIR/5995bbb575713ff8a9c6432b43c9a107 to your computer and use it in GitHub Desktop.
<?php
$entityBody = file_get_contents('php://input');
$fname = uniqid('uploaded_', true);
touch("exr_files/uploads/" . $fname . ".exr");
file_put_contents("exr_files/uploads/" . $fname . ".exr", $entityBody);
echo "http://fatihbakir.com/exr/exr_files/uploads/" . $fname . ".exr";
@josh04
Copy link

josh04 commented Aug 25, 2016

I see the devil PHP is creeping into this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment