]> wagnertech.de Git - timetracker.git/commitdiff
Added file content to attachment put.
authorNik Okuntseff <support@anuko.com>
Wed, 27 Mar 2019 15:20:16 +0000 (15:20 +0000)
committerNik Okuntseff <support@anuko.com>
Wed, 27 Mar 2019 15:20:16 +0000 (15:20 +0000)
WEB-INF/lib/ttFileHelper.class.php
WEB-INF/templates/footer.tpl

index 5c9b385b7f540398a3ff550839adec90041dfaaf..b976ba14acca080f3bf07da4af8cdf6d1f742daf 100644 (file)
@@ -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.
index eef37602ab1369cf70e619bc65548fa72376c008..d30bc6c955f8fac63ea52a2224ea18bd424c1f4f 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.18.61.4886 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.18.61.4887 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>