[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [11484] tweak fileuploader
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [11484] tweak fileuploader |
Date: |
Sun, 24 Nov 2013 19:55:28 +0000 |
Revision: 11484
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11484
Author: sigurdne
Date: 2013-11-24 19:55:27 +0000 (Sun, 24 Nov 2013)
Log Message:
-----------
tweak fileuploader
Modified Paths:
--------------
trunk/property/inc/class.fileuploader.inc.php
Modified: trunk/property/inc/class.fileuploader.inc.php
===================================================================
--- trunk/property/inc/class.fileuploader.inc.php 2013-11-24 19:54:40 UTC
(rev 11483)
+++ trunk/property/inc/class.fileuploader.inc.php 2013-11-24 19:55:27 UTC
(rev 11484)
@@ -260,9 +260,9 @@
- public function check($save_path = '')
+ public function check($save_path = '', $fakebase = '/property')
{
- $bofiles = CreateObject('property.bofiles');
+ $bofiles = CreateObject('property.bofiles',
$fakebase);
$to_file =
"{$bofiles->fakebase}/{$save_path}/{$_POST['filename']}";
//Return true if the file exists
@@ -318,9 +318,9 @@
*/
- function upload($save_path = '')
+ function upload($save_path = '', $fakebase = '/property')
{
- $bofiles = CreateObject('property.bofiles');
+ $bofiles = CreateObject('property.bofiles',
$fakebase);
$use_vfs = true;
// Check post_max_size
(http://us3.php.net/manual/en/features.file-upload.php#73762)
$POST_MAX_SIZE = ini_get('post_max_size');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [11484] tweak fileuploader,
Sigurd Nes <=