Sha256: 1197433c60b9f3cf1dad2a5738d60c9c5a239799d9a1a8251e176aa324e8e0b1
Contents?: true
Size: 454 Bytes
Versions: 9
Compression:
Stored size: 454 Bytes
Contents
<?php /** * Easy example script to store uploaded files * in the filesystem, make shure that the folder is writeable */ class upload { public function writeFile($rawContent) { $headers = getallheaders(); $filename = $headers['X-File-Name']; $filecontent = $rawContent; $fp = fopen($filename, 'w'); fwrite($fp, $filecontent); fclose($fp); return $filename; } } $file = new upload(); echo $file->writeFile($HTTP_RAW_POST_DATA); ?>
Version data entries
9 entries across 9 versions & 3 rubygems