FileUpload()
Manages the UPLOAD of a file
Usage
STRUCTURE = FileUpload(
destination,
filefield,
nameconflict,
accept,
uri
)
Argument | Summary |
---|---|
destination | local destination of where the file will be uploaded to. this is a local path relative to the server |
filefield | the form field containing the file; if missing the first file field will be used [optional] |
nameconflict | what to do if a file name already exists. Valid values: error/skip/overwrite/makeunique [optional] |
accept | the list of mime types that will be accepted [optional] |
uri | is the destination expressed as a real path or a URI, default to false [optional] |
Calling
Supports named-parameter calling allowing you to use the function like:
FileUpload( destination=?, filefield=?, nameconflict=?, accept=?, uri=? );
Supports passing parameters as a structure using ArgumentCollection:
FileUpload( ArgumentCollection={ destination : ?, filefield : ?, nameconflict : ?, accept : ?, uri : ? } );
See Also
DirectoryCreate
DirectoryDelete
DirectoryExists
DirectoryList
Expandpath
FileClose
FileCopy
FileDelete
FileExists
FileIseof
FileMove
FileOpen
FileRead
FileReadbinary
FileReadline
FileSeparator
FileSetaccessmode
FileSetattribute
FileSetlastmodified
FileUpload
FileUploadall
FileWrite
FileWriteline
GetDirectoryfrompath
GetFilefrompath
GetFileinfo
GetTempdirectory
GetTempfile
Unzip
Zip
Ziplist