$cancel = t('Cancel');
$failed = t('Failed');
+ $maximagesize = intval(get_config('system','maximagesize'));
+
$b['addon_text'] .= <<< EOT
<div id="file-uploader-demo1">
'</li>',
debug: true,
+ sizeLimit: $maximagesize,
onSubmit: function(id,filename) {
if (typeof acl!="undefined"){
uploader.setParams( {
*/
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);