Lasso Soft Inc. > Home

[File_Uploads]

[File_Uploads] returns an array of maps representing the files which were uploaded. Each map contains information about one file including the following members:
- Upload.Name - The path to the temporary location of the file.
- Upload.Size - The size of the file in bytes.
- Upload.Type - The MIME type of the file.
- Upload.RealName - The name of the file which was uploaded.

  • Syntax
  • Parameters
[File_Uploads]
Examples

To display information about all the files that were uploaded:

Use the [Loop] ... [/Loop] tags to loop through the [File_Upload] tag. The following exampe displays all the stored information about each uploaded file.

The results are shown for a file name MyPicture.gif which uploaded in a form element named Picture.

[Loop: (File_Uploads->Size)]
  [Variable: 'File'=(File_Uploads)->(Get: Loop_Count)]
  <p>Path: [Output: $File->(Find: 'upload.name')]
  <br>Size: [Output: $File->(Find: 'upload.size')]
  <br>Type: [Output: $File->(Find: 'upload.type')]
  <br>Real: [Output: $File->(Find: 'upload.realname')]
[/Loop]
Result:
<p>Path: E://WinNT/Temp/Lasso-tmp1.uld
<br>Size: 32
<br>Type: image/gif
<br>Real: MyPicture.GIF
Tag Link [File_Uploads] Category File
Type Substitution Data Source Any
Support Preferred Version 5.0
Output Type Array Security Tag
Implementation Sets Lasso 5.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft