[eluser]Chathuranga Tennakoon[/eluser]
this might be a problem of the LAMP/WAMP/XAMP or any other server that you are using. please check the php.ini file with below configuration.
Code:
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = "e:/wamp/uploads"
; Maximum allowed size for uploaded files.
upload_max_filesize = 8M
hope that might help!