mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 03:14:33 -04:00
Fixes for attachments
This commit is contained in:
parent
e11592e172
commit
1eb396f300
@ -25,7 +25,11 @@ class TempFile
|
|||||||
public static function filePath($data, $filename) :string
|
public static function filePath($data, $filename) :string
|
||||||
{
|
{
|
||||||
|
|
||||||
$file_path = sys_get_temp_dir().'/'.sha1(microtime() . '/' . $filename);
|
$dir_hash = sys_get_temp_dir().'/'.sha1(microtime());
|
||||||
|
|
||||||
|
mkdir($dir_hash);
|
||||||
|
|
||||||
|
$file_path = $dir_hash . '/' . $filename;
|
||||||
|
|
||||||
file_put_contents($file_path, $data);
|
file_put_contents($file_path, $data);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user