![]() ![]() gif, etc.) are binary files, so we’ll be working with that type. There are two general types of file that can go via POST: text files and binary files. Typically, there are two general file uploading methods in the HTML specification: POST, which we’ll be using in this article and PUT, which is mostly used to replace existing files with a specific resource ID, and is potentially more dangerous to use, so we’ll skip it. ![]() It’ll show you the path to the initialization file, like in the screenshot below: Locating a php ini file HTML file uploading methods Here is the part of this initialization file that’s related to file uploading:Īnd then launch it in your web browser. Also, you can set some restrictions, such as a maximum size for an uploaded file, number of files uploaded per chunk, etc. Make sure that the php.ini config file allows uploading files (it’s turned on by default). To follow along with this article, you’ll need to have a web server (Apache, nginx, etc.) with any of the recent PHP versions installed (version 7.x includes a few Session and CURL improvements regarding file uploading).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |