[pmwiki-users] "Name attachment as:"

JB jbit at ev1.net
Fri Sep 15 10:54:51 CDT 2006


> > > It's possible to eliminate the "Name attachment as:" box, yes:
...
> > (Bunch of code that PM provided)
...
> This works, but it also eliminates the Upload button.  Is there some way
> to put the upload button just to thte right of the browse button?




I added "<input type='submit' value='Upload' />" to the code you
provided me.
It appears to work.




$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]');





More information about the pmwiki-users mailing list