How To Upload Files On The Site

Table of contents:

How To Upload Files On The Site
How To Upload Files On The Site

Video: How To Upload Files On The Site

Video: How To Upload Files On The Site
Video: How To Create Professional File Uploading Website | File Upload Website like DropGalaxy Zippyshare 2024, November
Anonim

Uploading files to the site is an important and useful function. With its help, Internet users are given the opportunity to send not only text messages, but also documents in other formats, including graphic objects and archives.

How to upload files on the site
How to upload files on the site

Instructions

Step 1

There are several ways to create a file upload function. The easiest one is to activate the plugin you want. For wordpress, the following options are provided: - Blog Download allows you to download a post from a server using html, doc or pdf formats; - Restrict Uploads is intended for uploading graphic files to a blog (jpg, gif, png); - WordPress Video Plugin provides uploading videos to the site; - Download Monitor organizes the procedure for downloading documents. All you need to do in order for the plugin to work is to download it, install and configure it. The rest, as they say, is a matter of technology. The search for plugins does not cause any particular difficulties, they are presented on different sites on the Internet.

Step 2

But you can do without plugins, which already create additional load on the blog. The file upload function can be written in php format. This is perhaps the best solution even for a person who is not familiar with this programming language.

Step 3

Create a custom function that you will use wherever you need to attach a file loader. Name it upload, for example. Open the file with functions (funcs.php) in Notepad ++, write in the text: 924 * 3 * 924) {echo ("Exceeded size limit"); exit; } if (is_uploaded_file ($ _ FILES ["filename"] ["tmp_name"])) {move_uploaded_file ($ _ FILES ["filename"] ["tmp_name"], "/path/to/file/".$_FILES ["filename "] [" name "]); } else {echo ("An error occurred during loading"); }?>

Step 4

Create an upload form in the desired location on the site.

- overwrite

Recommended: