Multipurpose Send Mail Form Builder

v2.0

 

Form design

FileUpload

This component support upload file(s) to PHP (Web) server. It is the FileUpload component which is based on sample of Dustin Andrew (dustin@flash-dev.com).Thank to author for the useful component. It has also been modified to allow customize more parameter, both in Flex sourcecode and PHP upload script.

Following properties can be used in XML file

Properties Optional Value type Default value Meaning
type No String   Must be "FileUpload"
name No String   Name of this FileUpload object instance. It is similar to id field of Flex component. This property value must be unique in XML form file.
x No Int   X, Y position of FileUpload on form
y No Int  
width No Int   Width, Height of FileUpload on form
height No Int  
uploadPHP No String   http link to PHP upload script (included in purchased package and should not be modified)
storePath Yes Boolean "./uploadfiles" folder on PHP/Web server where uploaded files will be stored. It can relative or absolute path on filesystem on server
fileFilter Yes String *.* filter files which is allowed to add
fileStoredPattern Yes String "" File on server default will be normally same name with its original. If fileStoredPattern is not empty, correspoding file stored on Server after uploaded will have name start with fileStoredPattern + auto increment index.
forceOverwritten Yes Boolean false Overwritten if file is existed on server
maxFileSize No Int   max size of each upload file
maxNumberOfFiles Yes Int 5 Max number of file to be added each time upload

Example

<object>
   <type>FileUpload</type>
   <name>txtFileUpload1</name>
   <x>10</x>
   <y>300</y>
   <width>400</width>
   <height>200</height>
   <uploadPHP>http://localhost:8080/msmf/sendmail_attachment/upload.php</uploadPHP>
   <storePath>./uploadfiles</storePath>
   <fileFilter>*.jpg; *.gif</fileFilter>
   <fileStoredPattern></fileStoredPattern>
   <forceOverwritten>true</forceOverwritten>
   <maxNumberOfFiles>2</maxNumberOfFiles>
   <maxFileSize>20000000</maxFileSize>
   <toolTip>Please describe detail for your file</toolTip>
</object>

And the result

    

Back | Table of Contents | Next

 

Copyright © 2009 Best Flash Solutions, Inc. All rights reserved | Site map