Thanks for your help Meindert, you may have given me a clue to my
problem. I''m running my Instiki installation on using Apache mod_proxy
to proxy to the WEBrick server port 2500. When I follow the file upload
directions you''ve provided, I get a ''404 File Not
Found'' from Apache. It
appears to me that Instiki never gets to run the upload routine, because
Apache sees the file doesn''t exist and just sends back the 404 error??
Does the upload routine work for any others proxying Instiki through
Apache?
I''m running this on Win 2003 server, Apache 2.0.54, Ruby 1.84.17,
Instiki 0.11, and /files/ exists in the Instiki web I''m working on.
-Mike
-----Original Message-----
From: instiki-users-bounces at rubyforge.org
[mailto:instiki-users-bounces at rubyforge.org] On Behalf Of Meindert
Meindertsma
Sent: Friday, June 02, 2006 5:08 PM
To: instiki-users at rubyforge.org
Subject: Re: [Instiki] is there a config to enable file uploads?
Hi Mike,
I didn''t know how to upload either, until I found out by accident
today. Lucky me. So here''s a recipe.
Let''s say your wiki is called "mywiki" and you want to upload
an image
"myFig.png". Create this (temporary) hyperlink in your wiki page:
<a
href="http:/mywiki/files/myFig.png">upload this</a> (or in
Textile:
"upload this":http:/mywiki/files/myFig.png). After submitting the
page, click on the new link. If any myFig.png graphics comes up in
your browser: bad luck, this file already exists on the server -- try
another name. But when you''re more fortunate, you''ll get the
upload
page you longed for. Fill in the form (the original filename doen''t
have to be "myFig.png"), and your file will be transferred to the
server -- actually to public/mywiki/files/ -- as myFig.png. Now you
can remove the hyperlink from your wiki page and replace it by
something like <img src="/mywiki/files/myFig.png" /> (in
Textile:
!/mywiki/files/myFig.png!), or whatever you want.
There is a restriction. The destination *has* to be the mywiki/files/
folder. Any other location (like images/,
mywiki/files/someSubdirectory/ or mywiki/somePeerdirectory/) won''t
invoke the upload page.
This worked for me on Windows 2000 + Ruby 1.8.4 + Instiki 0.11.0 +
WEBrick, and I guess it will work for anyone using Instiki 0.11.0.
Meindert Meindertsma.
Quoting "Lucas, Mike" <MLucas at mvrpc.org>:
> I am setting up several wikis to try to help collect some HOWTO info
> for our staff, and love the simplicity and speed of Instiki, it is a
> great product, my first foray into playing with a RoR app.
>
> However, no matter how I try to search and read the documentation on
> file uploads in Instiki, I can''t get this feature working.
>
> I set the file limit in the Web Settings to 1 GB to test without
> limitations.
>
> I followed the small example on FileUploads page on instiki.org by
> placing the location of the file I want uploaded in brackets.
>
> I have Instiki running on a local webserver, proxied to the outside
> world via Apache. I''ve tried to point the upload files link to a
file
> straight off my local machine to see if it uploads to the web server
> but that doesn''t work. Does Instiki have a file upload module
> somewhere, do i have to give permissions to the /files dir? (I am
> running Apache webserver on a Windows Server box, with Ruby 1.84
> installed).
>
> I even ftp''d a file to the /files subdir and still can''t
get a clean
> link. When I ftp the file directly, then add [[filename.pdf:file]] the
> result is a highlighted link for a page that doesn''t exist, but if
I
> click the question mark to create it, then the PDF in the /files dir
> opens. Have I missed some config setting somewhere. I know instiki.org
> has the FileUpload page on the TODO list, but I''m getting
frustrated
> not being able to sort it out on my own. Everything else with this
> application is so simple and straightforward, I''m sure
I''m staring at
> the solution but just haven''t grokked. it.
>
> Thanks,
> -Mike
> Michael Lucas
> Web Manager
> MVRPC
>
>
_______________________________________________
Instiki-users mailing list
Instiki-users at rubyforge.org
http://rubyforge.org/mailman/listinfo/instiki-users