Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php file request

/**
 * Common File Request Method
 */
$file = $request->file('file');
$file->getClientOriginalName(); // Returns the original file name
$file->getClientOriginalExtension(); // Returns the original file extension
$file->getClientMimeType(); // Returns the file mime type
$file->getMaxFileSize(); // Returns the given size from an ini value in bytes.
$file->getErrorMessage(); // Returns an informative upload error message.
Source by github.com #
 
PREVIOUS NEXT
Tagged: #php #file #request
ADD COMMENT
Topic
Name
9+5 =