From: friendica Date: Mon, 26 Nov 2012 03:05:23 +0000 (-0800) Subject: js_upload - provide a site tmp directory config in case your service provider has... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ed2a22ab16d76c60aad639b0da433d9994be693f;p=friendica-addons.git js_upload - provide a site tmp directory config in case your service provider has an unusually small /tmp partition --- diff --git a/convert.tgz b/convert.tgz index 56e0080c..766eaf7a 100755 Binary files a/convert.tgz and b/convert.tgz differ diff --git a/editplain.tgz b/editplain.tgz index be813177..0f2b95d0 100644 Binary files a/editplain.tgz and b/editplain.tgz differ diff --git a/fbpost.tgz b/fbpost.tgz index c60a6c06..ded32e19 100644 Binary files a/fbpost.tgz and b/fbpost.tgz differ diff --git a/forumlist.tgz b/forumlist.tgz index fe559f33..cbcf0fbd 100644 Binary files a/forumlist.tgz and b/forumlist.tgz differ diff --git a/js_upload.tgz b/js_upload.tgz index 98e16c5a..5a415de7 100755 Binary files a/js_upload.tgz and b/js_upload.tgz differ diff --git a/js_upload/js_upload.php b/js_upload/js_upload.php index 3ba5f9c4..148fde31 100755 --- a/js_upload/js_upload.php +++ b/js_upload/js_upload.php @@ -196,7 +196,13 @@ class qqUploadedFileXhr { */ function save() { $input = fopen("php://input", "r"); - $this->pathnm = tempnam(sys_get_temp_dir(),'frn'); + + $upload_dir = get_config('system','tempdir'); + if(! $upload_dir) + $upload_dir = sys_get_temp_dir(); + + $this->pathnm = tempnam($upload_dir,'frn'); + $temp = fopen($this->pathnm,"w"); $realSize = stream_copy_to_stream($input, $temp); diff --git a/openstreetmap.tgz b/openstreetmap.tgz index 34f4bd6b..c195d151 100644 Binary files a/openstreetmap.tgz and b/openstreetmap.tgz differ diff --git a/page.tgz b/page.tgz index 21dab7b9..02140ce9 100644 Binary files a/page.tgz and b/page.tgz differ diff --git a/privacy_image_cache.tgz b/privacy_image_cache.tgz index b4c10080..8441ab65 100644 Binary files a/privacy_image_cache.tgz and b/privacy_image_cache.tgz differ diff --git a/smiley_pack.tgz b/smiley_pack.tgz index fe2689ca..2efe6332 100644 Binary files a/smiley_pack.tgz and b/smiley_pack.tgz differ diff --git a/statusnet.tgz b/statusnet.tgz index c171f2c3..72b6e928 100755 Binary files a/statusnet.tgz and b/statusnet.tgz differ diff --git a/twitter.tgz b/twitter.tgz index beeea2be..539ded93 100755 Binary files a/twitter.tgz and b/twitter.tgz differ