docs.roxen.comView this page in a printer friendly mode
DocsRoxen2.2Web Site Creator ManualProgramming Tags
Copyright © 2004, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com
 DEMO  DOCS  PIKE
 COMMUNITY  DOWNLOAD
www.roxen.com

   

<cache>
<?cdata ?>
<cgi>
<clear-session>
<crypt>
<debug>
<dice>
<eval>
<force-session-id>
<fsize>
<gauge>
<maketag>
<nocache>
<nooutput>
<noparse>
<?noparse ?>
<page-size>
<?perl ?>
<?pike ?>
<session>
<set-max-cache>
<trace>
<writefile>

<writefile></writefile>

Provided by module: Tags: Writefile

Writes uploaded or direct content to a file. You can either use an upload form or write the container content directly into a file. The ownership of any newly created file is determined by the directory it is placed into.

Additional functionality includes removal or renaming of already existing files. This container tag will set the truth value depending on success or failure of the requested operation.


Attributes

filename="string"

Specifies the virtual filename to be created or operated on (relative to the current directory, or to the root of the virtual filesystem).


chroot="string"

Specifies the virtual root directory (sandbox) all file operations are contained under.


from="string"

Specifies the type=file form field variable which uploaded the file to be written. If this attribute is omitted, the container content is what will be written instead. Given the example below, the parameter from=wrapupafile should be specified.


<form method='post'
   enctype='multipart/form-data'>
 <input type='file' name='wrapupafile' />
 <input type='submit' value='Upload file' />
</form>
File uploaded:
   <insert scope='form'
     variable='wrapupafile.filename'/>

append

Append to the file instead of replacing it.


mkdirhier

Create the directory hierarchy needed to store the file if needed.


remove

Causes the specified filename or directory to be removed.


moveto="string"

Causes the specified filename to be moved to this new location.


max-size="integer"

Specifies the maximum upload file size in bytes which is accepted.


max-height="integer"

The maximum imageheight in pixels which is accepted.


max-width="integer"

The maximum imagewidth in pixels which is accepted.


min-height="integer"

The minimum imageheight in pixels which is accepted.


min-width="integer"

The minimum imagewidth in pixels which is accepted.


accept-type="string"

Comma separated list of file types which are accepted, currently supported types are jpeg, png and gif; the check is performed on the file content, not on the file extension.