servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientservoy sSummary12%30%58%height: 30px;3Methods SummaryThis returns the bytes of the uploaded file, try to using streaming or file operation on it (so the bytes don't have to be full loaded in to memory)Returns the value for a give form field that was give as metadata to this uploaded fileThis returns the field names of the form fields that where give as metadata to this upload file.Returns the contents of the file as as string in UTF-8 encoding.If this returns false, then a tmp file is created for it.Writes the contents of this upload right to a file.functionservoy sDetail2100%height:30px2Methods DetailsgetBytesname
getBytes()
dessIndent
This returns the bytes of the uploaded file, try to using streaming or file operation on it (so the bytes don't have to be full loaded in to memory)
ret
Returns
sIndentthe bytes of the upload file,clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetContentTypename
getContentType()
dessIndentret
Returns
sIndentthe content type of this uploadclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetFieldValuename
getFieldValue(name)
dessIndent
Returns the value for a give form field that was give as metadata to this uploaded file
prs
Parameters
sIndentnameThe form fields nameret
Returns
sIndentthe value that was given or nullclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetFieldsname
getFields()
dessIndent
This returns the field names of the form fields that where give as metadata to this upload file.
ret
Returns
sIndentString[] Array of names of the field namesclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetNamename
getName()
dessIndentret
Returns
sIndentthe name of the upload file.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetSizename
getSize()
dessIndentret
Returns
sIndentthe size of the uploadclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetStringname
getString()
dessIndent
Returns the contents of the file as as string in UTF-8 encoding.
ret
Returns
sIndentthe String contentsclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowisInMemoryname
isInMemory()
dessIndent
If this returns false, then a tmp file is created for it. This means that you can also convert this to a JSFile and call rename() on it.
But the method write(file) will always work by writing the contents of this upload file to a different file.
ret
Returns
sIndenttrue if this upload is fully in memory (not saved to a temp file)clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowwritename
write(file)
dessIndent
Writes the contents of this upload right to a file. Use the file plugin to create a JSFile object that can be given to this function.
If this file was not fully in memory (isInMemory == false) then this will just stream the tmp file to the give file.
prs
Parameters
sIndentfilethe file object where to write to can be a JSFile or path stringret