X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/7420fa50ea7e810db85bcb7ced55dc01d21fafcd..024e938728d2b436f1f048531d8fd00a246920c6:/WEB-INF/lib/ttFileHelper.class.php diff --git a/WEB-INF/lib/ttFileHelper.class.php b/WEB-INF/lib/ttFileHelper.class.php index 5c9b385b..b976ba14 100644 --- a/WEB-INF/lib/ttFileHelper.class.php +++ b/WEB-INF/lib/ttFileHelper.class.php @@ -135,7 +135,7 @@ class ttFileHelper { 'user_key' => urlencode($fields['user_key']), // May be null. 'file_name' => urlencode($fields['file_name']), 'description' => urlencode($fields['description']), - // TODO: add file content here, too. Will this work for large files? + 'content' => urlencode(file_get_contents($_FILES['newfile']['tmp_name'])) ); // url-ify the data for the POST.