Add files upload

This commit is contained in:
Frédéric Guillot
2014-05-22 20:58:21 -04:00
parent 2230dd4e6b
commit 40917992e7
25 changed files with 549 additions and 53 deletions

View File

@@ -4,6 +4,11 @@ namespace Core;
class Response
{
public function contentType($mimetype)
{
header('Content-Type: '.$mimetype);
}
public function forceDownload($filename)
{
header('Content-Disposition: attachment; filename="'.$filename.'"');