HOWTO:Enable File Uploads

From e107 Wiki

Jump to: navigation, search

e107 Wiki: English | Русский | Deutsch | Français | Magyar | Português | Български | České | Nederlands | Ελληνικά | Italiano | Norske | Polska | Slovenščina | Español | Svenska | Translate: Wiki | Page

How do I connect to the wiki ?

spacer

Current Release 1.0.1 | e107.org | Download | Changelog | Forum | Plugins | Themes | RSS Feed of Latest Changes | Atom Feed of Latest Changes


HOWTO:Enable File Uploads
Main page > I : First Aid > II : Development > III : Administration > IV : How To's > V : Plugin Writing > VI : Theming & Shortcodes


Contents

  • 1 Introduction
  • 2 Steps to Enable Uploads
  • 3 Security
  • 4 Public Upload Settings
  • 5 In Video

Introduction

This guide takes you step-by-step through to enabling file uploads for your e107 site.

The file uploads handler defaults to disabling all file uploads on install. This is for security reasons. Disabled file uploads also includes preventing uploading of zipped plugins and themes, and applies to admin users also.

Steps to Enable Uploads

Rename the new file e107_admin/filetypes_.php to e107_admin/filetypes.php and add a comma delimited list of allowed file type extensions to it.

Code: Example e107_admin/filetypes.php
zip, gz, jpg, png, gif

Security

You should not allow the upload of .html, .txt, etc as an attacker may upload a file of this type which includes malicious javascript. You should also, of course, not allow the upload of .php files or any other type of executable script. Please also check your e107_files/public/ directories and verify that the files there are legitimate.

Public Upload Settings

You need to enable public Uploads too and configure the options including Maximum File Size.

  • See: Public Upload Settings

In Video

by BAW1994
  • E107 Tutorial - 4 - Downloads & Uploads
How to add an article to the handbook
Retrieved from "wiki.e107.org/index.php?title=HOWTO:Enable_File_Uploads"
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in
Navigation
  • Main Page
  • e107.org
  • Recent changes
  • Random page
  • Community portal
  • Help
Sections
  • About e107
  • Install e107
  • Setup e107
  • Using e107
  • e107 How To Guides
  • e107 Video Tutorials
  • e107 Security
  • Languages
  • Plugin Writing
  • Theming
  • Shortcodes
  • Development
  • e107 Glossary
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.