mpfserver Manual
 
 
 Examples | upload files from client to server
uploading files from several file-input fields

input of all file-input fields ("file1", "file2", "file3") will be uploaded to folder "C:/temp/"
{mpf:upload=C:/temp/}
<form enctype="multipart/form-data" method="POST">
<input name="file1" type="file">
<input name="file2" type="file">
<input name="file3" type="file">
<input type="submit">
</form>
uploading files from a single file-input field

input of "file1" will be ignored in this example
{mpf:upload=C:/temp/||param=file2}
<form enctype="multipart/form-data" method="POST">
<input name="file1" type="file">
<input name="file2" type="file">
<input type="submit">
</form>
allow only pictures to be uploaded
{mpf:upload=C:/temp/||allow=image/gif,image/jpeg,image/png}
<form enctype="multipart/form-data" method="POST">
<input name="file1" type="file">
<input type="submit">
</form>
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).