PHP String Functions.You can use the jQuery change() method to get the file name selected by the HTML form control < input type"file">.(input[type"file"]).change(function(e). var fileName e.target. files.name Specifically, how do I get contents? Thanks, John. <-- Can I make a better looking file box? After selection of the file the path of the file will appear in the file input box. The form type is set to ENCTYPE"multipart/form-data" . Note that we are not going to discuss here how to handle the file upload, this is explained in our php file upload section. PHP. Why am I getting Invalid attachment type on Google App Engine.Why the list of routes is bigger than the routes declared into the routes/web. php file? 126. Setting the default filename Getting the original name The size attribute Setting restrictions on the file size Filtering (through a file type filter) The status of RFC 1867.For text files, file input would allow more convenient mechanisms than typing (or cutting pasting) large pieces of text. Tutorial Overview: Basic introduction to the PHP GET, POST, and RETURN variables.Video Source Code. File: formget.php.