The filename of the uploaded pdf form submit and get success message after uploaded. The destination of the moved file.
Additionally, a warning will be issued. If the destination file already exists, it will be overwritten. First : make sure that the file is not empty. Third : make sure that the file name not bigger than 250 characters.
Fourth: Check File extensions and Mime Types that you want to allow in your project. You have multi choices to checking extensions and Mime types. Fifth: Check file size and make sure the limit of php. Do not forget this steps for your project protection. For those using PHP on Windows and IIS, you SHOULD set the “upload_tmp_dir” value in php. Temp, then you move it to your website directory, its permissions will NOT be set correctly. That function will work fine for files with a 3-character file extension.
However, it is worth noting that there are valid, registered file extensions that are longer than 3 characters. Another wrench in the gears: a file can have dots in the filename. For blindly guaranteeing an uploaded file will be uniquely named, this seems like a fantastic way to go. If you have open_basedir set then you must set upload_tmp_dir to somewhere within the open_basedir. Otherwise the file upload will be denied. One more thing I want to mention about the post_max_size setting in php. It took me a while to figure the reason out.