WebUploadedFile

From Xojo Documentation

Revision as of 03:01, 23 November 2010 by Dbrandt (talk | contribs) (Created page with '{{ClassBox | super=WebObject | platform=all | scope=global }} The array of objects passed to WebFileUploader.UploadComplete are this class. It has four properties. They …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Class (inherits from WebObject)

The array of objects passed to WebFileUploader.UploadComplete are this class. It has four properties. They are all are read-only.


Properties
ControlID fa-lock-32.png {MIMEType fa-lock-32.png Page fa-lock-32.png
Data fa-lock-32.png Name fa-lock-32.png Parent fa-lock-32.png
Enabled Name fa-lock-32.png Size fa-lock-32.png

Example

The following method from the WebUpload example in the Examples directory uses an array of files that are pased to the method.


sub uploadcomplete (files() as webuploadedfile
dim source as picture
dim view as imageview1
dim r as new random
r.randomizeseed

for each file as webuploadedfile in files
try
source = picture.fromdata(file.data)
catch err as unsupportedformatexception
continue
end

view = self.addimageview1
view.lockleft = false
view.locktop = false
view.lockhorizontal = true
view.lockvertical = true
view.width = source.width
view.height = source.height
view.horizontalcenter = rectangle2.horizontalcenter + r.inrange(-100,100)
view.verticalcenter = rectangle2.verticalcenter + r.inrange(-100,100)
view.style = viewcell
view.picture = source

animator1.rotatez(view,r.inrange(-45,45),0.5)
animator1.addnextkeyframe(0.5)
next

end sub
animator1.play


See Also

WebFileUploader