Setting temporary file location |
We integrated a hi-performance PHP upload component - PHP Uploader into Rich Text Editor. PHP Uploader allows you to select and upload multiple files at once. It also supports client side validation of the file size/type before uploading.
PHP Uploader does not read the entire uploaded file into memory. It streams the data into a temporary file while the data is received. For this reason, you must specify a temporary file location. You should ensure that the Internet Guest Account has read/write permission to this specified folder.
You can easily specify the temporary file location by setting uploader's TempDirectory property:
// Register Editor component to your page <?php require_once "richtexteditor/include_rte.php" ?> <html> <body> <form id="form1" method="POST"> <?php // Create Editor instance and use Text property to load content into the RTE. $rte=new RichTextEditor(); $rte->Text="Type here"; // Set a unique ID to Editor $rte->ID="Editor1"; // Set a temporary file location $rte->TempDirectory="/mytempfolder"; $rte->MvcInit(); // Render Editor echo $rte->GetString(); ?> </form> </body> </html>
If there is no temporary file location specified, RichTextEditor will use the system's temp folder.
Send feedback about this topic to CuteSoft. © 2003 - 2012 CuteSoft Components Inc. All rights reserved.