Recent Changes . Page History . Printable View . Edit Page
SearchWiki:
        
        
        
       

File/Image Upload

  support after usemodj version 1.1a 

Configuration properties for file upload

File: WEB-INF/classes/usemodj.properties :
   ...

 -- 1 = allow uploads, 0 = no uploads
 UseUpload?   = 1           

 -- Full path (like <Context ROOT Real Path>/uploads/<the first char of  fileName>/<fileName>) 
 -- UploadDir? = $CONTEXT_DIR/uploads ($CONTEXT_DIR = C:/cafe/jakarta-tomcat-4.1.24/webapps/usemodj)
 UploadDir?   = C:/cafe/jakarta-tomcat-4.1.24/webapps/usemodj/uploads  

 --  Full URL (like [http://foo.com]/<Context ROOT>/uploads/<the first char of fileName>/<fileName>)
 -- UploadUrl?   = $CONTEXT_URI/uploads ($CONTEXT_URI= /usemodj)
 UploadUrl?   = /usemodj/uploads


File, Image upload wiki tag :

  {upload | image | attach}:<file name> 



 upload:<File Name or Image Name> 
ex) upload:Tiger.gif , upload:wikiToturial.txt , upload:Mount

 image:<Image Name> 
ex) image:usemodj.gif , image:usemodj.png , image:usemodj.jpg , image:usemodj

 attach:<File Name or Image Name>
ex) attach:fileName.doc , attach:fileName , attach:imageName.png , attach:imageName

  upload:<File Name or Image Name>  
     ex) 
   upload:Tiger.gif , upload:wikiToturial.txt , upload:Mount



  image:<Image Name>  
    ex) image:usemodj.gif , image:usemodj.png , image:usemodj.jpg , image:usemodj



  attach:<File Name or Image Name>  
    ex) attach:Tiger.gif , attach:Mount  , attach:Car.png , attach:WikiDocument??


Upload (Image | File) Scenario

First write <code>upload:<file or image name> </code> in wiki editing page and save it, and upload link(?) appears above the <file or image name>. click the link and upload the local file to the web server. . After a file is uploaded, file url link will appear and file change link(+) will be followed. <code> upload:, attach:, image: </code> are the same function(file or image upload). If image file has been uploaded, its thumbnail appears and there is url link to the uploaded image file. Thumbnail size is some different between <code>image:</code> tag and <code> upload: and attach: </code> tags

 <code> 
  upload:mount.jpg  attach:mount.gif  image:mount.png 
  upload:wikiToturial.txt  attach:wikiToturial.txt image:wikiPage.txt
 </code>


Images (Url link)

Just provide the URL, and the image will be inserted inline.

 <code>

    http:images/usemodj.gif (local url) 
  OR  
     http://www.usemod.com/wiki.gif  
</code>

Edit Page - Page History - Printable View - Recent Changes - PmWikiHelp - SearchWiki
SourceForge.net Logo XDoclet Logo Struts Logo Velocity Logo
Page last modified on May 20, 2004, at 05:20 AM