Skip to content

Public_Uploads

Cameron edited this page Jan 28, 2017 · 1 revision

title: Public Uploads permalink: /Public_Uploads/

Public Uploads

e107 » Admin Area » Content » Public Uploads

List Uploads

This page lists any submitted uploads. You may choose to delete them, transfer them to downloads, or post them to news.

  • ID
  • Date
  • Poster
  • Name
  • File Name
  • Size
  • Actions

From here you can administer the uploaded files.

Setting up the Upload System

  1. Go to the Filetypes settings.
  2. Set the appropriate values for each userclass.
  3. Generate the XML file.
  4. The filetypes_.xml file is generated in the e107_media/temp folder.
  5. FTP the generated file to your local PC
  6. FTP the standard file from e107_admin folder to your local PC
  7. Using a good Code Programmers Editors
    • Copy the contents of the generated file
    • Paste the definition into the standard file.
    • Ensure you do not have two definitions for the same class id.
  8. FTP the edited version back to e107_admin
  9. Go to Public Uploads > Options
    • Enable Uploads.

Default Admin Copy of filetypes_.xml

<?xml version="1.0" encoding="utf-8"?>
<e107Filetypes>
    <class name='253' type='zip,gz,jpg,png,gif' maxupload='2M' />
</e107Filetypes>

Generated Example of filetypes_.xml

<e107Filetypes>
    <class name='253' type='jpg' maxupload='80k' />
    <class name='254' type='jpg,zip' maxupload='2M' />
</e107Filetypes>

Admin Edited copy for deployment as filetypes.xml

<?xml version="1.0" encoding="utf-8"?>
<e107Filetypes>
    <class name='253' type='jpg' maxupload='80k' />
    <class name='254' type='jpg,zip' maxupload='2M' />
</e107Filetypes>

Warning

Only when you have generated and deployed the file correctly to e107_admin will the screen display the allowed filetypes.

File Types

The file types and maximum file size which can be uploaded are set by user class. This option generates a file called ../e107_media/temp/filetypes_.xml, which must be copied or moved to directory ../e107_admin/ and renamed to filetypes.xml before it takes effect.

One definition per class is permitted.

Note that these definitions apply site-wide, even if the public uploads feature is disabled.

This page helps you create a file for managing file upload permissions. The file is saved as ../e107_media/temp/filetypes_.xml, and must be copied to ../e107_admin/filetypes.xml before it takes effect.

Options

The complete public uploads system may be disabled here. Flatfile storage is generally appropriate (otherwise the maximum file size is hard-limited to 500kb). The maximum filesize overrides any definitions set in filetypes.xml. Public uploads may be restricted to a particular user class, but these settings also apply to other areas of the site where uploads may be permitted, such as news and forms.

Uploads Enabled?

No public uploads will be permitted if disabled

  • Yes
  • No

Maximum file size

Absolute maximum upload size in bytes. Further limited by settings from php.ini, and by the settings in filetypes.xml (upload_max_filesize = 2M, post_max_size = 8M )

Permission

Select to allow only certain users to upload

  • Everyone (Public) Not recommended!
  • Guests
  • No One (Inactive)
  • Members
  • Admin
  • PRIVATEMENU
  • PRIVATEFORUM1
  • Everyone But...
    • Not Guests
    • Not Members
    • Not Admin
    • Not PRIVATEMENU
    • Not PRIVATEFORUM1

User Guide Category:Admin Category:Content Category:Public Uploads Category:WhatsNew

Clone this wiki locally