js_upload - provide a site tmp directory config in case your service provider has an unusually small /tmp partition
This commit is contained in:
parent
c1ca17e15f
commit
ed2a22ab16
12 changed files with 7 additions and 1 deletions
BIN
convert.tgz
BIN
convert.tgz
Binary file not shown.
BIN
editplain.tgz
BIN
editplain.tgz
Binary file not shown.
BIN
fbpost.tgz
BIN
fbpost.tgz
Binary file not shown.
BIN
forumlist.tgz
BIN
forumlist.tgz
Binary file not shown.
BIN
js_upload.tgz
BIN
js_upload.tgz
Binary file not shown.
|
@ -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);
|
||||
|
||||
|
|
Binary file not shown.
BIN
page.tgz
BIN
page.tgz
Binary file not shown.
Binary file not shown.
BIN
smiley_pack.tgz
BIN
smiley_pack.tgz
Binary file not shown.
BIN
statusnet.tgz
BIN
statusnet.tgz
Binary file not shown.
BIN
twitter.tgz
BIN
twitter.tgz
Binary file not shown.
Loading…
Reference in a new issue