Последние изменения - Поиск:

Разделы

PmWiki

ред.

UploadsAdmin-Talk

PHP itself has two limits on file uploads (usually located in /etc/php.ini). The first is the upload_max_filesize parameter, which is set to 2M by default. The second is post_max_size, which is set to 6M by default.

after not finding /etc/php.ini on my site, and looking around online for clues, i discovered that putting the following code in your .htaccess file at your website's root allows you to knock up your upload_max_filesize (the max size limit of a single file you're uploading) from 2MB to 8MB (running PHP 4.4.8):

          <IfModule mod_php4.c>
          php_value upload_max_filesize 8M
          </IfModule>

overtones99? July 10, 2008, at 03:19 AM

Is it possible to eliminate the "Name attachment as:" box so the uploaded file uses the same filename and the selected file? GNUZoo?

Yes. Put the following code into you config.php file:

$PageUploadFmt = array("
  <div id='wikiupload'>
  <h2 class='wikiaction'>$[Attachments for] {\$FullName}</h2>
  <h3>\$UploadResult</h3>
  <form enctype='multipart/form-data' action='{\$PageUrl}'
method='post'>
  <input type='hidden' name='n' value='{\$FullName}' />
  <input type='hidden' name='action' value='postupload' />
  <table border='0'>
    <tr><td align='right'>$[File to upload:]</td><td><input
      name='uploadfile' type='file' /><input type='submit'
value='Upload' /></td></tr></table></form></div>",
  'wiki:$[{$SiteGroup}/UploadQuickReference]');

In my lan-only pmwiki, how can I authorize ANY upload, without any size nor type checking? At the moment, I force my lan-only fully-trusted users to use a container such as .tar... Mhhh... Not that nice.

How do I disable the upload file files with no extension?


This is a talk page for improving PmWiki.UploadsAdmin.

Править - История - Печать - Последние изменения - Поиск
Редакция от 04.03.2009 06:48