class Illuminate / Http / UploadedFile
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

UploadedFile

Extends

    Symfony\...\UploadedFile

Uses

Methods

public static

fake ( ) : FileFactory

Begin creating a new file fake.

public

store ( $path , $options ) : string|false

Store the uploaded file on a filesystem disk.

Parameters

  • $path string
  • $options array|string
public

storePublicly ( $path , $options ) : string|false

Store the uploaded file on a filesystem disk with public visibility.

Parameters

  • $path string
  • $options array|string
public

storePubliclyAs ( $path , $name , $options ) : string|false

Store the uploaded file on a filesystem disk with public visibility.

Parameters

  • $path string
  • $name string
  • $options array|string
public

storeAs ( $path , $name , $options ) : string|false

Store the uploaded file on a filesystem disk.

Parameters

  • $path string
  • $name string|array
  • $options array|string
public

get ( ) : false|string

Get the contents of the uploaded file.

public

clientExtension ( ) : string

Get the file's extension supplied by the client.

public static

createFromBase ( Symfony\...\UploadedFile $file , $test ) : static

Create a new file instance from a base instance.

Parameters

  • $file Symfony\...\UploadedFile
  • $test bool
protected

parseOptions ( $options ) : array

Parse and format the given options.

Parameters

  • $options array|string