Class

io.scalajs.npm.express.multer

MulterOptions

Related Doc: package multer

Permalink

class MulterOptions extends Object

Multer accepts an options object, the most basic of which is the dest property, which tells Multer where to upload the files. In case you omit the options object, the file will be renamed and uploaded to the temporary directory of the system. If the inMemory option is true, no data is written to disk but data is kept in a buffer accessible in the file object.

By the default, Multer will rename the files so as to avoid name conflicts. The renaming function can be customized according to your needs.

The following are the options that can be passed to Multer.

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

Instance Constructors

  1. new MulterOptions(dest: UndefOr[String] = js.undefined, limits: UndefOr[MulterLimits] = js.undefined, includeEmptyFields: UndefOr[Boolean] = js.undefined, inMemory: UndefOr[Boolean] = js.undefined, rename: UndefOr[Function] = js.undefined, onFileUploadStart: UndefOr[Function] = js.undefined, onFileUploadData: UndefOr[Function] = js.undefined, onFileUploadComplete: UndefOr[Function] = js.undefined, onParseStart: UndefOr[Function] = js.undefined, onParseEnd: UndefOr[Function] = js.undefined, onError: UndefOr[Function] = js.undefined, onFileSizeLimit: UndefOr[Function] = js.undefined, onFilesLimit: UndefOr[Function] = js.undefined, onFieldsLimit: UndefOr[Function] = js.undefined, onPartsLimit: UndefOr[Function] = js.undefined)

    Permalink

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. var dest: UndefOr[String]

    Permalink
  7. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. var inMemory: UndefOr[Boolean]

    Permalink
  14. var includeEmptyFields: UndefOr[Boolean]

    Permalink
  15. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  17. var limits: UndefOr[MulterLimits]

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. var onError: UndefOr[Function]

    Permalink
  22. var onFieldsLimit: UndefOr[Function]

    Permalink
  23. var onFileSizeLimit: UndefOr[Function]

    Permalink
  24. var onFileUploadComplete: UndefOr[Function]

    Permalink
  25. var onFileUploadData: UndefOr[Function]

    Permalink
  26. var onFileUploadStart: UndefOr[Function]

    Permalink
  27. var onFilesLimit: UndefOr[Function]

    Permalink
  28. var onParseEnd: UndefOr[Function]

    Permalink
  29. var onParseStart: UndefOr[Function]

    Permalink
  30. var onPartsLimit: UndefOr[Function]

    Permalink
  31. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  32. var rename: UndefOr[Function]

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. 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