Trait

com.google.appsscript.ui

FileUpload

Related Doc: package ui

Permalink

trait FileUpload extends Object

FileUpload Deprecated. The UI service was deprecated on December 11, 2014. To create user interfaces, use the HTML service instead. A widget that wraps the HTML element. This widget must be used within a FormPanel. The result of a FileUpload is a "Blob" which can we used in various other functions. Below is an example of how to use FileUpload. function doGet(e) { var app = UiApp.createApplication().setTitle("Upload CSV to Sheet"); var formContent = app.createVerticalPanel(); formContent.add(app.createFileUpload().setName('thefile')); formContent.add(app.createSubmitButton()); var form = app.createFormPanel(); form.add(formContent); app.add(form); return app; } function doPost(e) { // data returned is a blob for FileUpload widget var fileBlob = e.parameter.thefile; var doc = DocsList.createFile(fileBlob); } Internally, UiApp widgets are built on top of the Google Web Toolkit, and it can sometimes be helpful to look at the GWT documentation directly. You can find the FileUpload documentation here.

Annotations
@RawJSType()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileUpload
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addChangeHandler(handler: Handler): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  5. def addStyleDependentName(styleName: String): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  6. def addStyleName(styleName: String): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getId(): String

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  14. def getTag(): String

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  15. def getType(): String

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  16. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  24. def setEnabled(enabled: Boolean): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  25. def setHeight(height: String): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  26. def setId(id: String): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  27. def setLayoutData(layout: AnyRef): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  28. def setName(name: String): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  29. def setPixelSize(width: Int, height: Int): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  30. def setSize(width: String, height: String): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  31. def setStyleAttribute(attribute: String, value: String): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  32. def setStyleAttributes(attributes: AnyRef): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  33. def setStyleName(styleName: String): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  34. def setStylePrimaryName(styleName: String): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  35. def setTag(tag: String): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  36. def setTitle(title: String): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  37. def setVisible(visible: Boolean): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  38. def setWidth(width: String): FileUpload

    Permalink

    Deprecated.

    Deprecated. This function is deprecated and should not be used in new scripts.

  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  41. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  42. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped