Browse Source

js_upload - provide a site tmp directory config in case your service provider has an unusually small /tmp partition

pull/83/head 3.1
friendica 10 years ago
parent
commit
ed2a22ab16
  1. BIN
      convert.tgz
  2. BIN
      editplain.tgz
  3. BIN
      fbpost.tgz
  4. BIN
      forumlist.tgz
  5. BIN
      js_upload.tgz
  6. 8
      js_upload/js_upload.php
  7. BIN
      openstreetmap.tgz
  8. BIN
      page.tgz
  9. BIN
      privacy_image_cache.tgz
  10. BIN
      smiley_pack.tgz
  11. BIN
      statusnet.tgz
  12. BIN
      twitter.tgz

BIN
convert.tgz

Binary file not shown.

BIN
editplain.tgz

Binary file not shown.

BIN
fbpost.tgz

Binary file not shown.

BIN
forumlist.tgz

Binary file not shown.

BIN
js_upload.tgz

Binary file not shown.

8
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);

BIN
openstreetmap.tgz

Binary file not shown.

BIN
page.tgz

Binary file not shown.

BIN
privacy_image_cache.tgz

Binary file not shown.

BIN
smiley_pack.tgz

Binary file not shown.

BIN
statusnet.tgz

Binary file not shown.

BIN
twitter.tgz

Binary file not shown.
Loading…
Cancel
Save